Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Current level

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
sanjaymann
1637 Views, 3 Replies

Current level

Hi,

 

How do I get the currently selected level.

 

Thanks & Regards

3 REPLIES 3
Message 2 of 4
jeremytammik
in reply to: sanjaymann

active document > current view > level?

 

check using RevitLookup.



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

Message 3 of 4
sanjaymann
in reply to: jeremytammik

The following code will give you the level:

 

doc.ActiveView.GenLevel.Name

 

Thanks & Regards

Message 4 of 4
jeremytammik
in reply to: sanjaymann

Thank you for sharing!



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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community