AcDbDictionary is marked as ePermanentlyErased

By Xiaodong Liang

Issue
I have a drawing containing custom objects that I have saved. When I reopen the drawing and try to access some of the dictionaries within the drawing, I find that they have been marked as ePermanentlyErased. Why?

Solution
This problem usually manifests itself when custom objects do not save themselves correctly. You should review their dwgInFields and dwgOutFields methods to make sure that they are correctly implemented. In addition, when you read/write specific type of data, it is recommended to use the type-specific methods such as writeInt32, readInt32.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading