-
-
Notifications
You must be signed in to change notification settings - Fork 428
Create Pattern not working in Revit 2022? #1224
Copy link
Copy link
Closed
Labels
API ChangeRevit API change that breaks pyRevit [class->Upgraded #{number}: {title}]Revit API change that breaks pyRevit [class->Upgraded #{number}: {title}]BugBug that stops user from using the tool or a major portion of pyRevit functionality [class]Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
Metadata
Metadata
Assignees
Labels
API ChangeRevit API change that breaks pyRevit [class->Upgraded #{number}: {title}]Revit API change that breaks pyRevit [class->Upgraded #{number}: {title}]BugBug that stops user from using the tool or a major portion of pyRevit functionality [class]Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
I'm getting an error message while trying to creat pattern in Revit 2022:
_IronPython Traceback:
Traceback (most recent call last):
File "C:\Users\X\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Modify.panel\edit1.stack\Patterns.splitpushbutton\Make Pattern.pushbutton\script.py", line 38, in
AttributeError: 'Autodesk.Revit.DB' object has no attribute 'DisplayUnitType'
Script Executor Traceback:
System.MissingMemberException: 'Autodesk.Revit.DB' object has no attribute 'DisplayUnitType'
à IronPython.Runtime.Binding.PythonGetMemberBinder.NamespaceTrackerDelegate.Target(CallSite site, Object self, CodeContext context)
à System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
à Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
à Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
à Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
à IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
à PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)_