Viewports in Paperspace exported to PDF, PNG or SVG not visible #554
Unanswered
Jaime-Moniet
asked this question in
Q&A
Replies: 1 comment 1 reply
-
viewports are not properly supported by the drawing addon. see #535. However they should be drawn as rectangles. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am using the ezdxf example code from "viewports_in_paperspace.py" as the basis in a little project I am working with, but have added the following code (within the make function of the example), to generate either png, pdf or svg files based on the ezdxf drawing / export addon but to export directly from the paperspace, where the viewports are:
`
`
The Viewports are visible in AutoCAD, but the viewports in all the png, pdf or svg files are not visible, only the text added into the paperspace is visible.
In the command line, I will get multiple messages saying: "Warning: viewport with null view vector" (when vp_layer is on, or "skipped entity VIEWPORT(#1D5). Reason: "invisible"" when the vp_layer is off.
I have tried explicitly using dxfattribs={"plot": 1} within the doc.new.layers() function but does not help.
Is there something I am missing here? Any tips would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions