|
Copy of AcDbRegion or AcDb3dSolid is NULL during dragging 在拖动期间,AcDbRegion 或 AcDb3dSolid 的副本为 NULL[code] AcDbRegion* m_pDraggedInstance;
And then implement your copyFrom method as follows:
Acad::ErrorStatus MyEntity::copyFrom(const AcRxObject* pOther){
assertWriteEnabled();
Acad::ErrorStatus es = AcDbRegion::copyFrom(pOther);
if( es!=Acad::eOk ){
return es;
}
//detect that we lost our representation
AcDbRegion* pSheet = AcDbRegion::cast(pOther);
if (pSheet && isNull() && !pSheet->isNull())
m_pDraggedInstance = pSheet;
}
return Acad::eOk;
}[/code] |
|