Controlling the Project Browser

Controlling the Project Browser

Kevin.Bell
Advisor Advisor
1,970 Views
5 Replies
Message 1 of 6

Controlling the Project Browser

Kevin.Bell
Advisor
Advisor

Hi,

 

I've looking to create a small c# routine which would find the current opened view in the browser.

 

So the user would click on a button and the browser could scroll to the opened view which would be shown in bold.

 

That the idea at least, but I can't find anything in the API which allows the browser to be controlled or searched.

 

The only thing that I've found is the BrowserOrganisation Class - which is no good.

 

Am i missing something or is there simply no way of accessing the browser with the API?

 

Thanks.

1,971 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk

Dear Kevin,

 

I think the BrowserOrganisationclass is all the Revit API has to offer right now.

 

Sorry about that.

 

Have you checked the Revit Idea Station for a corresponding wish list item and ensured it has many votes?

 

Thank you!

 

Cheers,

 

Jeremy 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 6

Kevin.Bell
Advisor
Advisor

That's a shame... Thanks.

Message 4 of 6

carlos.carrilloBWH7S
Explorer
Explorer

Im traying do the same thing, any update for API 2020?

Message 5 of 6

jeremy_tammik
Alumni
Alumni

BrowserOrganization was introduced in Revit 2015 and enhanced in Revit 2018 and Revit 2019:

 

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 6 of 6

sragan
Collaborator
Collaborator

That would be a nice add it. 

 

Actually, it would be really nice if Revit would just zoom to the current view in the project browser by itself.

 

Unfortunately, I don't see anything in the Browser Organization Class that looks like it would let someone highlight the active view, or scroll or zoom to that view.

 

The project browser also has a search window (right click in the project browser and select search).   If one could activate and control this window from the API, that might be another way to implement this add in. 


But again, it doesn't look like the API provides any access to the browser search window.