Hello,
i have a dictionay with collected Revit IDs (of rooms)
room_from_lights_Id = [int(str(i.Id)) for i in room_from_lights]
how can i convert them back to revitIds
lights_in_rooms = [doc.GetElement(i) for i in room_from_lights_Id]
this does not work…
it is only sidestep to elementId. the RevitId is the reference
lights_in_rooms_Only_Id = [ElementId(i) for i in room_from_lights_Id] lights_in_rooms = [doc.GetElement(i) for i in lights_in_rooms_Only_Id] print(lights_in_rooms)