Broswer Nodes

Broswer Nodes

dbrblg
Collaborator Collaborator
328 Views
2 Replies
Message 1 of 3

Broswer Nodes

dbrblg
Collaborator
Collaborator

Is it possible to determine which nodes are expanded using the API?

 

I want to make some changes to the node information in an assembly browser but as there are many hundred parts so I only want to do the operation on the expanded nodes to keep any delay to a minimum.

 

There are also useful implications to part browser nodes where this could be useful too......

 

Is this possible?

 

Thanks

 

 

0 Likes
329 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

There is a property in the API for BrowserNode called "Expanded" which returns True or False.

 

Here is a simple (iLogic) example of how you could use it :

 

Dim oBrowserNode As BrowserNode

Dim oTopNode As BrowserNode
oTopNode = ThisApplication.ActiveDocument.BrowserPanes.ActivePane.TopNode

For Each oBrowserNode In oTopNode.BrowserNodes
If oBrowserNode.Expanded = True Then

'do your code for the expanded nodes here

End If
Next

 

Hope it helps

 

Tom

 

 

0 Likes
Message 3 of 3

dbrblg
Collaborator
Collaborator

oh Smiley Frustrated, I wasn't aware this existed.  

 

I did have a quick look throught he help files....

 

Ah well, looks like it might well do what i'm after.  Thanks for this Smiley Happy

0 Likes