revitapi ironpython ToRoom returns “indexer # object”
问题 in revit api i am trying to access the ToRoom / FromRoom properties for doors. the simplified code snippet in ironpython: fc = FilteredElementCollector(doc) doors = fc.OfCategory(BuiltInCategory.OST_Doors).WhereElementIsNotElementType().ToElements() for door in doors: froom = door.FromRoom my result is an "indexer # object at 0x0000000000035" how can i access the room object from here? 回答1: This is an IronPython / funky Revit API issue. Basically, the way FromRoom is defined, it can be either