TA的每日心情 | 开心 半小时前 |
---|
签到天数: 20 天 [LV.4]偶尔看看III
管理员
- 积分
- 1393
|
- 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;
复制代码 |
|