.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need Help: ImpDBObject in Named Dictionary?

0 REPLIES 0
Reply
Message 1 of 1
rmduser
412 Views, 0 Replies

Need Help: ImpDBObject in Named Dictionary?

Hi, there!

I've created a CustomObject (with a managed wrapper) that I would like to add to the drawing's named dictionary. I will refer to it as an "ObjectMap" object (it stores some ID mapping).
Everything works fine when creating the managed object and adding it to the dictionary (during BeginSave), but when I try to re-read the CustomObject from the dictionary after the DWG is loaded, I only get an "Autodesk.AutoCAD.DatabaseServices.ImpDBObject" from out of the dictionary, which i cannot cast to an "ObjectMap".
I haven't used wrapped Custom Objects this way before. Could I have done anything wrong? Can I retrieve my data from the ImpDBObject? Unfortunately, this isn't documented anywhere...

Cheers,
Alfred
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost