- ads_name Ename;
- ads_point p1;
- AcDbObjectId ObjID;
- AcGePoint3dArray PtList;
- AcDbCurve *pCur;
- if (acedEntSel(_T("\n请选对象:"),Ename,p1)!=RTNORM)return;
- acdbGetObjectId(ObjID,Ename);
- if (acdbOpenObject(pCur,ObjID,AcDb::kForWrite)!=eOk)return;
- pCur->getStretchPoints(PtList);//取出对象所有的节点
- pCur->close();
- return;
|