Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to save multiple object selections from custom Selection Tree?

1 REPLY 1
Reply
Message 1 of 2
PissLUR
440 Views, 1 Reply

How to save multiple object selections from custom Selection Tree?

So, we are building a Selection Tree in our own .NET application using the API. The question is what options are available for storing the selections?

 

Currently we are investigating the use of Quantification functionality in Simulate 2015 to define a Selection category for defining whether the object is in the selection. Is this the only approach?

 

Thanks

1 REPLY 1
Message 2 of 2
xiaodong_liang
in reply to: PissLUR

Hi,

 

So, you wanted to bind the selection to the tree node, right? It depends on how you organize the nodes.

 

a couple of ways I can think of:

 

-        If an explicit selection, you can bind the selection object (ModelItemCollection) to the Node.Tag directly.

-        If it is selection with some conditions, you can attach the condition (e.g. handle=12345, hidden = false) to the attribute of the node. When the node is selected, just build a Search with the condition and find the model items. Or even you can bind a Search object to Node.Tag directly.

-        If the node is linking to the SelectionSet, you can attach the name of SelectionSet to the node. When the node is selected, find the corresponding modelitem

 

All of above are not saved with document. I’d suggest one more way: store the desired hierarchy to the database of document. When the document is opened, read the info from the database, build the node with the info (such as Search condition, or SelectionSet name).

  

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report