From fdce70c1bdb740d98242bd091935d1a3b03459c7 Mon Sep 17 00:00:00 2001 From: epeter- Date: Sat, 24 Nov 2018 18:02:28 +0100 Subject: [PATCH] Update firsttransaction_script.py --- .../Session 4.pushbutton/firsttransaction_script.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()