Replies: 1 comment
-
This is possible. You have to address the right Viewport Entity: Paperspace Layouts have a Main Viewport, which is "paper", and other Viewport(s) are the windows into ModelSpace.
You can determine the values needed for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related to #1181
I have a predefined DXF template with an empty modelspace, but with a paperspace layout with several viewports. There are also different layers and configured in a way that some of them are frozen in different viewports.
Now I open the DXF file, select modelspace and a layer and add then entities. Then I move to paperspace and because the drawing in modelspace is different, the viewport needs to be updated with then new positions from modelspace. I can calculate the boundingbox of the modelspace and based on that and the viewport size I want to change the
dxf.view_center_point
and thedxf.view_height
but it doesn't work.Did I miss something or isn't it possible? In the latter, then I need to create the viewports myself everytime. Not a huge issue, but if it's possible to update the viewport, users can make changes to the template rather then dig into the code.
Beta Was this translation helpful? Give feedback.
All reactions