New Member
Posts: 2
Registered: ‎04-13-2012
Message 1 of 3 (1,112 Views)

DWFObject and DWFInstance

1112 Views, 2 Replies
04-15-2012 08:48 AM

Newbie question on DWFToolKit.  Given an instance of DWFInstance, how do I get the corresponding DWFObject?

And given a DWFObject, how do I get the associated DWFInstance?


Thank you in advance.



Posts: 136
Registered: ‎06-07-2009
Message 2 of 3 (1,105 Views)

Re: DWFObject and DWFInstance

04-16-2012 06:55 PM in reply to: cng

Thank you for your questions.

The DWF Instance is recorded in the DWF Object Definition resource and DWF Content Definition resource. Please refer to the DWF Toolkit samples “ObjectDefinitionReader” and “ReadContentDefinition” to get the DWF Instance.


The 3D DWF Object is recorded in the 3D Graphic Resource. Please refer to the toolkit sample “SimpleW3DStreamProcessor” to parse the 3D Graphic Resource; you can get each DWF Object by TK_Tag. Please refer to the DWF Toolkit help doc for more detail information about the TK_Tag.


After getting the DWF Instance and DWF Object, you can match them: the DWF Instance node Id is equal to the Tag id (which is the DWF Object node Id).


Please let us know if you have any further questions.

Silvia Cao
SW Engineer
Autodesk, Inc.
Posts: 15
Registered: ‎03-27-2012
Message 3 of 3 (656 Views)

Re: DWFObject and DWFInstance

02-10-2013 10:55 PM in reply to: cng

This is how you match DWFObject and DWFInstance:


DWFObject *obj;


DWFInstance* pInstance = piInstance->value();

DWFRenderable* pRendered = pInstance->getRenderedElement();


obj->id() == pRendered->id(); 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.