Message 1 of 14
HELP: Get the Level ID of the element Beam (Structural Framing) with C#

Not applicable
04-17-2015
09:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone:
I am trying to get the Level ID of the element Beam (Structural Framing).
The 'Revit Lookup' shows up -1 as a value. Where else can I find the Level ID of this element Beam?
Code:
foreach...... Level level = m_revit.ActiveUIDocument.Document.GetElement(fi.LevelId) as Level; double elevation = level.Elevation; string elevationName = level.Name;
Error:
Thanks
David