Replies: 2 comments
-
The problem is the complexity of the DIMENSION entity. It is not just an entity it also requires an graphical representation of DXF primitives (rendering) in an anonymous BLOCK. You can study how this is done in the But I would suggest to collect the required parameters an add them later by the "official" factory methods. For more information look at the linear dimension tutorial. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks!
…On Sun, 21 Nov 2021 at 7:58 pm, Manfred Moitzi ***@***.***> wrote:
The problem is the complexity of the DIMENSION entity. It is not just an
entity it also requires an graphical representation of DXF primitives
(rendering) in an anonymous BLOCK. You can study how this is done in the
graphicsfactory.py module and replicate this behavior.
But I would suggest to collect the required parameters an add them later
by the "official" factory methods. For more information look at the linear
dimension tutorial
<https://ezdxf.mozman.at/docs/tutorials/linear_dimension.html>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#579 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMYPUFDG4AOR5UWRTYH4YHTUNC7FDANCNFSM5IOZ7BQQ>
.
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a code structure like a tree. I want each "leaf" to draw itself and add dimension information.
Currently EZDXF is structured so annotations can be added at the msp object, i.e. msp.add_linear_dim(parameters...).
Is there a way I can create "remote" linear dim object, then parse it to the msp to add later?
Example:
Leaf1.linear_dim = EZDXF.linear_dim_object(p1, p2, angle, etc...).
Leaf1.linear_dim = EZDXF.linear_dim_object(p1, p2, angle, etc...).
Msp.add(Leaf1.linear_dim, Leaf2.linear_dim)
Thanks Joseph.
I'm a mechanical engineer who knows the valve of automation! Anything a keyboard and mouse can do can be automated :)
Beta Was this translation helpful? Give feedback.
All reactions