Hey all,
I am attempting to use the Data-Shapes TreeView Input so that the UI shows Views/Sheets in the same format as Revit’s Project Browser.
The catch is getting this to work when the parameters used for Browser Org are different between models.
I’ve managed to cobble together some Python and nodes that will identify and report the active Browser Org parameters which was the first part of the puzzle (suggestions of improvement are welcome).
Now, the issue is trying to group and sort the views by the Browser Org parameters when you don’t know how many levels there might be in the Browser.
I initially used the method outlined by @Mostafa_El_Ayoubi on another thread (Browser organisation in UI-dropdown) to try and get my head around the logic but this requires that you have a known/set number of Browser Org parameters which isn’t the case in this scenario.
I suspect that Python will be the answer here but my knowledge is rudimentary at best so I’m hoping someone can help direct me.
I’ve attached my WIP definition including some experimentation I’ve been doing with dictionary sorting.
Views by Browser Organisation.dyn (114.3 KB)