I have a project file with many linked files in it (tiny houses). Every linked file has its own level, and I’m trying to get the elevation of that level respect to the ground level of the hosted file. How would you do it in python? Properties like BoundingBox or Location are not working (I get Location but not the point…), and Elevation property gives me the elevation respect to the ground level of the linked file, of course. This is part of my code, if it helps:
for room in rooms: roomLevel = room.Level.Elevation for linkInstance in linkInstances: linkDoc = linkInstance.GetLinkDocument() #RDS1 try: allCeilings = FilteredElementCollector(linkDoc).OfCategory(BuiltInCategory.OST_Ceilings) \ .WhereElementIsNotElementType() \ .ToElements() for ceiling in allCeilings: ceilingLevelId = ceiling.LevelId ceilingLevel = linkDoc.GetElement(ceilingLevelId) test.append(ceilingLevel) except: pass
Thanks in advance!