You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to Copy / Paste States for viewport placement on sheet via Basepoint, I receive a traceback error which states viewports cannot be non-rectangular. However, I'm using a scope box to crop the view, and Revit does not allow those to be non-rectangular.
⌨ Error/Debug Message
ERROR [pyrevit.revit.db.transaction] Error in Transaction Context. Rolling back changes. |<type 'exceptions.Exception'>:The crop of the associated view is not permitted to have a non-rectangular shape.
ERROR [pyrevit.revit.db.transaction] Error in TransactionGroup Context. Rolling back changes. |<type 'exceptions.Exception'>:The crop of the associated view is not permitted to have a non-rectangular shape.
IronPython Traceback:
Traceback (most recent call last):
File "C:\Program Files\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Selection.panel\memo.stack\Paste State.pushbutton\script.py", line 38, in<module>
File "C:\Program Files\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Selection.panel\memo.stack\lib\copypastestate\actions.py", line 610, in paste
File "C:\Program Files\pyRevit-Master\pyrevitlib\pyrevit\revit\db\update.py", line 133, in set_crop_region
Exception: The crop of the associated view is not permitted to have a non-rectangular shape.
Script Executor Traceback:
Autodesk.Revit.Exceptions.InvalidOperationException: The crop of the associated view is not permitted to have a non-rectangular shape.
at Microsoft.Scripting.Runtime.LightExceptions.ThrowException(LightException lightEx)
at Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value)
at Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Run(InterpretedFrame frame)at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception)at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)at PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)
♻️ To Reproduce
Click on view with scope box applied as crop region
Navigate to pyRevit tab
Click Copy State
Click Viewport Placement on Sheet
Select Align to Base Point on Paste
Receive error.
⏲️ Expected behavior
I expect to be able to copy and paste views on sheets which use scope boxes as view boundaries.
🖥️ Hardware and Software Setup (please complete the following information)
✈ Pre-Flight checks
🐞 Describe the bug
When attempting to Copy / Paste States for viewport placement on sheet via Basepoint, I receive a traceback error which states viewports cannot be non-rectangular. However, I'm using a scope box to crop the view, and Revit does not allow those to be non-rectangular.
⌨ Error/Debug Message
♻️ To Reproduce
⏲️ Expected behavior
I expect to be able to copy and paste views on sheets which use scope boxes as view boundaries.
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: