Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

0 REPLIES 0
Reply
Message 1 of 1
davidm_adn
428 Views, 0 Replies

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

Hi,

 

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

 

Model

-> Lines

      -> Line 1

      -> Line 2

      -> Line 3

-> Circles

      -> Circle 1

      -> Circle 2

-> Arcs

      -> Arc 1

etc.

 

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::DWFSegment 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.

 

0 REPLIES 0

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

Post to forums  

”Boost

 

”Tips

 

”Services