AcDbEntity *pEnt;
acdbOpenAcDbEntity(pEnt, pId, AcDb::kForRead);
AcRxObject *pObj = NULL;
pObj = pEnt->clone();
AcDbEntity *pEntT = static_cast<AcDbEntity*>(pObj);
第二种
AcRxObject *obj = pPolyline->clone();
AcDbPolyline *newPoly = new AcDbPolyline();
newPoly =AcDbPolyline::cast(obj);
时间: 2024-10-27 08:14:52