Distinguished Contributor
Posts: 209
Registered: ‎11-28-2003
Message 1 of 1 (198 Views)

DWFToolkit: how do you re-open a DWFSegment when writing a w3d

198 Views, 0 Replies
07-18-2013 09:07 AM



Suppose you want to create a 3d dwf whose content is like:



-> Lines

      -> Line 1

      -> Line 2

      -> Line 3

-> Circles

      -> Circle 1

      -> Circle 2

-> Arcs

      -> Arc 1



If the objects to process come in any order and I don't get the chance to sort them by type (they come from an ODA vectorizer), how can I

1. Tell if I already have a segment called Model/Lines, if I encounter a line to add to the w3d

2. Reopen that Lines segment, if I answer question 1?


In simpler terms, given a DWFToolkit::smileyvery-happy:WFSegment object, how can I tell if it has a child segment with a name called 'Lines', and reopen it to add more geometry to it?


I tried instantiating the parent segments (Lines, Circles etc) with 'new' and keeping their addresses and names in an array, so I could get at them any time after creating them. That seemed to work, the dwf opens up and looks good in Design Review, but Navisworks won't open it (internal error).


Thanks for any help, I hope I explained the problem enough.


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.