diff --git a/nodes/3.x/python/Sheet.Scale.py b/nodes/3.x/python/Sheet.Scale.py index 9adbbba5..5f761f66 100644 --- a/nodes/3.x/python/Sheet.Scale.py +++ b/nodes/3.x/python/Sheet.Scale.py @@ -2,10 +2,10 @@ clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * -def GetViewScale(view): - if hasattr(view, "Scale"): return view.Scale +def GetSheetScale(sheet): + if hasattr(sheet, "Scale"): return sheet.get_Parameter(BuiltInParameter.SHEET_SCALE).AsValueString() else: return None -views = UnwrapElement(IN[0]) -if isinstance(IN[0], list): OUT = [GetViewScale(x) for x in views] -else: OUT = GetViewScale(views) \ No newline at end of file +sheets = UnwrapElement(IN[0]) +if isinstance(IN[0], list): OUT = [GetSheetScale(x) for x in sheets] +else: OUT = GetSheetScale(sheets) \ No newline at end of file