gtalarico / pyrevitplus

PyRevitPlus - Extensions for PyRevit
GNU General Public License v3.0
52 stars 16 forks source link

Challenge: Can you write a tool that collapses/expands the Project Browser hierarchy? #5

Closed eirannejad closed 8 years ago

gtalarico commented 8 years ago

Haha. Sounds like a nice tool Expand all, collapse all. looks like it's not exposed by the API: http://forums.autodesk.com/t5/revit-api-forum/how-to-read-browser-organization-info-from-the-revit-api-2013/td-p/4961214

eirannejad commented 8 years ago

I was thinking maybe you know how to grab the standard Windows tree control from the view and collapse and expand the items...Not sure if it is possible though

gtalarico commented 8 years ago

I was able to work something pretty roughly, not very elegantly : ) It just SendKeys (Left, Up, Left, Up), but it doesnt't collapse all, only the root nodes...