cancel
Showing results for 
Search instead for 
Did you mean: 

Question about a way to collapse an object in object-tree via API

Siemens Pioneer Siemens Pioneer
Siemens Pioneer

Question:

 

is there a way to collapse an object in object-tree via API?

Or, is there a way to add entities (TxSolids) to a component without the component automatically expanding?

In my case thousands of entities are generated. Each causes a refresh of the tree and after generating the component has to be manually collapsed, that’s extremely annoying...

At least Ralf Willers also had this demand in the past.

 

Answer:

 

We cannot collapse the tree from the API.

There is a new interface for the .NET viewers – ITxTreeViewerControl that supports expand/collapse, but it will not work for the Object Tree (it is a native viewer).