Get Cross-Reference Clipping Boundaries #828
-
Hello! I have a file (XREF.dxf) that is cross-referenced in another drawing (INPUT_DRAWING.dxf). I'd like to copy the cross-reference from INPUT_DRAWING.dxf to an OUTPUT_DRAWING.dxf. As of now, I'm able to copy the block definition for the cross-referenced file, and add references to that block definition on the new file. However, I haven't been able to figure out how to get the clipping boundaries of those references. For instance:
The cross-reference in INPUT_DRAWING.dxf has been clipped to something smaller:
In the generated OUTPUT_DRAWING.dxf, the original XREF.dxf boundaries have been kept.
Any ideas on where within INSERTS or block definitions I can find those clipping boundaries? Thank you! Also for reference, I've tried opening INPUT_DRAWING.dxf and immediately saving as OUTPUT_DRAWING.dxf through ezdxf. This does keep the boundaries of the xref defined in INPUT_DRAWING.dxf, so I know that the clipped boundaries are probably stored somewhere. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I assume you are using the I am currently working on a new module called |
Beta Was this translation helpful? Give feedback.
I assume you are using the
Importer
add-on to import data from the XREF.dxf file, which is not capable to import the clipping path of block references (INSERT entities). The clipping path is a complex feature and not documented by the DXF reference, but support for this feature is on my TODO list see #760.I am currently working on a new module called
xref
which is much more powerful than theImporter
add-on for loading (not importing) data from external DXF files (XREFs). The import process of theImporter
add-on removes most external dependencies such as XDATA, custom app-data and all links to objects in the OBJECTS section, the loading process of thexref
module preserves most if not a…