马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
 - 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;
简单代码,是我搜索椭圆长度时没找到,就自己写了个测试代码
|