Message 1 of 8
Why embedded entity in my custom entity cannot be wblockcloned?

Not applicable
05-22-2008
04:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My custom entity is derived from AcDbEntity.An AcDb2dPolyline entity is embedded in it.I do it as Art Cooney wrote on http://discussion.autodesk.com/thread.jspa?messageID=5910438.
I erase the 2dPolyline after it is embedded in my custom entity.But I find the HardPointId is NULL after I re-open the saved DWG file.So I create an anonymous Block and move the 2dPolyline to the block.Now it works fine except that I find the embedded 2dPolyline's owner is eWasErased.
One problem is the erased 2dPolyline cannot be saved in *.dxf file although I have overrided the dxfInFields/dxfOutFields methods.
Another problem is that when I copy the custom entity from current database to another database,I find the embedeed 2dPolyline is not copied and the custom entity's HardPointId which references to the 2dPolyline is NULL.But I have overrided the wblockClone method.
Can anybody help me? Thanks in advance.
I hope Art Cooney will give me more advice.
I erase the 2dPolyline after it is embedded in my custom entity.But I find the HardPointId is NULL after I re-open the saved DWG file.So I create an anonymous Block and move the 2dPolyline to the block.Now it works fine except that I find the embedded 2dPolyline's owner is eWasErased.
One problem is the erased 2dPolyline cannot be saved in *.dxf file although I have overrided the dxfInFields/dxfOutFields methods.
Another problem is that when I copy the custom entity from current database to another database,I find the embedeed 2dPolyline is not copied and the custom entity's HardPointId which references to the 2dPolyline is NULL.But I have overrided the wblockClone method.
Can anybody help me? Thanks in advance.
I hope Art Cooney will give me more advice.