We have a 3rd party app that inherits from the AcadEntity class. When picking up an event as a 3d DWF is written, the object is passed and can easily be cast to a DBObject, but when I try and pass this to an AcadEntity, Autocad Crashes.
DBObject dbo =(DBObject) e.Entity; //OK
AcadEntity acadebt = (AcadEntity) dbo; //Crashes
I am assuming this is because the AcadEntity is a COM object really, coming from the VBA classes. Any ideas on how to convert the object??