• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    DWF

    Reply
    Active Member
    varadd
    Posts: 10
    Registered: ‎06-17-2010

    failed to get ObjectDefinition to traverse through complete tree structure.

    607 Views, 2 Replies
    07-12-2010 10:30 AM

    Hi,

     

    I am trying build dwf reader. I got struct while traversing tree structure and mapping it with Open_Segment.

     

    Big problem is i am not able to get ObjectDefination any dwf file (except one which is provided with sample).

     

    I tried to travese throguh all section (globle and non globle) and asked for ObjectDefination but it doesnt have.

     

    This is not file specific since i have tried this with many assembly dwfs & dwfx published via Inventor 2008 & 2010 also.

     

    Here attached peice of code(ReadObjectDefinition.txt) that i am using. also attached sample dwf file published with Inventor 2008.

     

    ---

     

    Also is there any other way find relation between DWF Instanaces and & TK_Open_Segment, i have tried to get DWFContent from that tried for DWFInstance but NodeID doesnt match at all. Have been through complete forum but havent got any solution.

     

    KIndly help me out in this, since it is too urgent for me.

     

    Thank You,

    -Varad

    Please use plain text.
    Employee
    Posts: 106
    Registered: ‎06-08-2009

    Re: failed to get ObjectDefinition to traverse through complete tree structure.

    07-19-2010 10:09 PM in reply to: varadd

    Thank you for your question.

     

    For 3D DWF, DWF Toolkit uses the opcode TKE_Tag to map an instance. The TKE_Tag count equals the instance node id. Then the named segment which includes the TKE_Tag will be mapped to the instance.

     

    DWF Toolkit provides Object Definition and Content Definition (see sample ReadContentDefinition in DWF Toolkit) to record the instances. For the attached file “Blower_Frame.dwf”, instances are stored in Content Definition.

     

    Please let me know if you have any further questions.

     

    Silvia

    ADR/DWF Customer Support



    Ben Wu
    SW Engineer
    PSEB-GE-ACRD
    Autodesk, Inc.
    Please use plain text.
    Active Member
    varadd
    Posts: 10
    Registered: ‎06-17-2010

    Re: failed to get ObjectDefinition to traverse through complete tree structure.

    07-22-2010 05:55 AM in reply to: wube

    Hi,

    Thanks a lot for your reply... I have tried same and it worked out. Just a little modification in your solution... TK_Tag class doesnt provide any method to retreive current tag index so it become difficult to map tag (I mean how to get tag value that was realy an issue).. but then utilized BStreamFileToolkit::smileytongue:eekTagIndex which gives last tag index...

     

    Thank you once again..

    Please use plain text.