|
- ads采用name ename;
- ads采用point pt;
- if(RTNORM!=acedEntSel(采用T("\n请选择一个椭圆:"),ename,pt))
- {
- return;
- }
- AcDbObjectId entId;
- acdbGetObjectId(entId,ename);
- AcDbEllipse* pEllipse = NULL;
- if(Acad::eOk!=acdbOpenObject(pEllipse,entId,AcDb::kForRead))
- {
- return;
- }
- double len;
- Acad::ErrorStatus es;
- double param;
- es = pEllipse->getEndParam(param);
- es = pEllipse->getDistAtParam(param,len);
- acutPrintf(采用T("\n椭圆长度为%.3f"),len);
- pEllipse->close();
- pEllipse = NULL;
复制代码 |
|