Message 1 of 25
Copy/Paste on custom entity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
class XEl public AcDbEntity {
.....
AcGePoint3d ;
AcDbHandle;//handle to another custom entity (another class)
......
}
Now, when we perform a Copy/Paste sequence to another drawing, the XEl::worldDraw() is called, it tries to open the entity pointed to by the member handle and of course errors out.
The curious part is that the error is Acad::eWasErased when in fact the entity is nonexistent.
Any good explanation?
BTW, the solution would be the same (create a new entity and point the handle at it) but I'd like to know if there is a way do distinguish between an erased entity and a nonexistent one.
TIA
alex
class XEl public AcDbEntity {
.....
AcGePoint3d ;
AcDbHandle;//handle to another custom entity (another class)
......
}
Now, when we perform a Copy/Paste sequence to another drawing, the XEl::worldDraw() is called, it tries to open the entity pointed to by the member handle and of course errors out.
The curious part is that the error is Acad::eWasErased when in fact the entity is nonexistent.
Any good explanation?
BTW, the solution would be the same (create a new entity and point the handle at it) but I'd like to know if there is a way do distinguish between an erased entity and a nonexistent one.
TIA
alex