Accessing the Browser Tree to expand a Occurence node to show suboccurences

Accessing the Browser Tree to expand a Occurence node to show suboccurences

balunist
Advocate Advocate
246 Views
2 Replies
Message 1 of 3

Accessing the Browser Tree to expand a Occurence node to show suboccurences

balunist
Advocate
Advocate

I'm creating a new occ at the root and move one or more existing occ under that new occ.   I would like to expand the browser tree node of the new occ to show the sub occ.   Is this possible and how?   

Thanks in advance!

Bill

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

rohit_maneYV8C9
Autodesk
Autodesk

Hello @balunist ,
I don't think there is API support functionality available to expand and collapse browser tree nodes. However, we have something similar in CAM workspace.

0 Likes
Message 3 of 3

balunist
Advocate
Advocate
Thank you, Brian Ekins gave me a way to explore the browser tree that works
in both workspaces. See below. The method you provided, which expands
all, is not quite what I wanted but may come in handy at some point.
Bill
ui.activeSelections.clear()
ui.activeSelections.add(occ)
cmd = ui.commandDefinitions.itemById('FindInBrowser')
cmd.execute()