How to plot Inserts entities #862
Unanswered
cristobalinho
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I have not read the full code, but it seems you want the render DXF content 😄. You can learn from the ezdxf/src/ezdxf/addons/drawing/frontend.py Line 696 in be570c7 def draw_insert(insert: Insert):
self.draw_entities(insert.attribs)
# draw_entities() includes the visibility check:
self.draw_entities(
insert.virtual_entities(
skipped_entity_callback=self.skip_entity
# TODO: redraw_order=True?
)
) and the core Line 159 in be570c7 |
Beta Was this translation helpful? Give feedback.
2 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everybody, I've been trying to plot some INSERT entities using the transformation matrix and it works well when the block which is being referenced is only made of LINES entities, but when the block has LWPOLYLINE or ARC entities it doesn't work. I can solve this by converting the LWPOLYLINE into separate segments of LINES but Ihaven't done yet for ARC and I was asking if there is a more general way to do it for all entities. Here is part of my code.
I've also tried using other transformation matrix, and it happened that I could plot every entity but the coordinates weren't the right ones. Here is an example of what I get using the following matrix:
The figure in the left is using the last matrix and the figure in the right is using the function Plot_insert, and give me the right position of the INSERT. Summarizing I need to know how to get a transformation matrix to plot any kind of entity in a block reference (INSERT).
I hope I was clear and thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions