ads_name Ename;
ads_point p1;
AcGePoint3d Spt,Ept;
怎么选择开始点和结束点之外的别的点呢啊? ads_real Dist;
ads_name Ename;
ads_point p1;
AcGePoint3d Spt,Ept,Mpt;
AcGePoint3dArray PtList;
AcDbObjectId ObjID;
AcDbCurve *pCur;
if (acedEntSel(_T("\n选线:"),Ename,p1)!=RTNORM)return;
acdbGetObjectId(ObjID,Ename);
if (acdbOpenObject(pCur,ObjID,AcDb::kForWrite)!=Acad::eOk)return;
pCur->getStartPoint(Spt);//取出对象起点
pCur->getEndPoint(Ept);//取出对象终点
pCur->getDistAtPoint(Ept,Dist);
pCur->getPointAtDist(Dist*0.5,Mpt);//对象中点
pCur->getStretchPoints(PtList);//对象所有节点
pCur->close();
页:
1
[2]