使用函数:AcDbPolyline::explode(): extern AcDbPolyline* pObj; //polyline AcDbVoidPtrArray arObj; AcDbEntity *pSubEnt; const TCHAR* pszName; pObj->explode(arObj);
for(int i=0 ; i<arObj.length() ; i++) { pSubEnt=(AcDbEntity*)(arObj); pszName= pSubEnt->isA()->name(); //class name //下面就是你自己的处理过程 //... } |