Skip to content

How to export only a portion of the Model space elements to pdf file? #1066

Answered by mozman
maslke asked this question in Q&A
Discussion options

You must be logged in to vote

You don't have to draw the whole modelspace, you can also draw just a subset of the entities: Frontend.draw_entities(subset)

How to get this subset? That is your specific problem to solve. The next version of ezdxf has a new select module to select entities based on their location. A release candidate ezdxf v1.3.0rc0 is available on PyPI.

Docs for the selection tools: https://ezdxf.mozman.at/docs/tasks/select.html
Tutorial: https://ezdxf.mozman.at/docs/tutorials/entity_selection.html#tut-entity-selection

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maslke
Comment options

Answer selected by maslke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants