Hello!
I'm removing ExtensionDictionary from DBObject. It removes, that's OK. But drawing needs audit after this action.
using (DBDictionary dict = (DBDictionary)o.ExtensionDictionary.GetObject(OpenMode.ForWrite))
{
if (dict.Count==0)
{
dict.Erase();
}
}
Maybe I have to use another methods?
I found DBObject.Audit method, but cannot understand how to work with it.
This code after dict.Erase() crushes AutoCAD:
AuditInfo ai = (AuditInfo)AuditInfo.Create(typeof(AuditInfo), o.UnmanagedObject, true);
dict.Audit(ai);