diff --git a/extensions/pyRevitTutor.extension/pyRevitTutor.tab/Sessions.panel/Session 4.pushbutton/firsttransaction_script.py b/extensions/pyRevitTutor.extension/pyRevitTutor.tab/Sessions.panel/Session 4.pushbutton/firsttransaction_script.py index 7652271cf..61d0de408 100644 --- a/extensions/pyRevitTutor.extension/pyRevitTutor.tab/Sessions.panel/Session 4.pushbutton/firsttransaction_script.py +++ b/extensions/pyRevitTutor.extension/pyRevitTutor.tab/Sessions.panel/Session 4.pushbutton/firsttransaction_script.py @@ -3,7 +3,7 @@ __title__ = 'First\nTransactions' -from Autodesk.Revit.DB import FilteredElementCollector, BuiltInCategory, Transaction, TransactionGroup +from Autodesk.Revit.DB import FilteredElementCollector, BuiltInCategory, Transaction, TransactionGroup, BuildInParameter doc = __revit__.ActiveUIDocument.Document @@ -23,7 +23,7 @@ t.Start() for sheet in sheets_collector: - custom_param = sheet.Parameter[DB.BuiltInParameter.ALL_MODEL_INSTANCE_COMMENTS] + custom_param = sheet.Parameter[BuiltInParameter.ALL_MODEL_INSTANCE_COMMENTS] if custom_param: custom_param.Set("Example value") @@ -38,4 +38,4 @@ t.Commit() -tg.Assimilate() \ No newline at end of file +tg.Assimilate()