Replies: 1 comment
-
All entities are decomposed into DXF primitives for the bounding box calculation. The visual representation of the DIMENSION entity is stored in an anonymous BLOCK which also contains a POINT entity for each definition point of the DIMENSION entity. You can delete all POINT entities from the anonymous BLOCKS before the bounding box calculation, but don't save this DXF, because some 3rd party libraries may rely on the existence of these POINTS: for block in dxf_doc.blocks:
# all anonymous DIMENSION blocks start with "*D"
if not block.name.startswith("*D"):
continue
for point in block.query("POINT"):
point.destroy() AutoCAD and BricsCAD do not complain about missing defpoints: |
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.
-
for exmple in this dxf, when I calculate the boundingbox
dimension_boundingbox.zip
results is below
Obviously, it consider the very far away single control vertex.
Intuitively for me, this is not what I suppose the dimension to be.
Of cause, it depends how EZDXF defines a boundingbox of dimension entity!!
I was wondering how can I get the visual part of boundingbox of a dimension?
Thank you~
Beta Was this translation helpful? Give feedback.
All reactions