I goal is to get the floor element on which an element lies.
I am trying to use the Element.LevelId property as listed in the Revit API but for some reason it seems Like it isn’t working.
Any idea?
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)
#Preparing input from dynamo to revit
element = UnwrapElement(IN[0])
OUT = element[0].LevelId