Order of views in browser

Order of views in browser

Kevin.Bell
Advisor Advisor
550 Views
2 Replies
Message 1 of 3

Order of views in browser

Kevin.Bell
Advisor
Advisor

Hi,

 

I'm writing an addon which displays views from the Project Browser.

 

This works, but I've realised my addon does not show the views in the correct order.

 

The project browser order is:

 

Floor Plans,

Ceiling Plans,

3D Views,

Elevations,

Legends

etc.

 

These I can obviously easily see, in Revit, but there are other views the user can create which I'm unsure of where they would go in the Browser.

 

I thought the viewtype enumeration gave the order:

 

https://www.revitapidocs.com/2015/bf04dabc-05a3-baf0-3564-f96c0bde3400.htm

 

But its not correct.

 

Anyone know where I can find the order of all types of Revit views?

 

Thanks.

 

0 Likes
Accepted solutions (1)
551 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

Afaik, this is not exposed in the Revit API.

 

Therefore, I'm afraid your only choice will probably be to manually hardcode the order you observe in the Revit user interface.

 



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

Message 3 of 3

ottosson_mathias
Advocate
Advocate

I've wanted to be able to get this hierarchy as well for a long time.

0 Likes