Expand description
DXF reader and writer (ASCII and binary) for the cadkit model.
Contract used by the cadkit facade: sniff(), read(), write().
readaccepts ASCII and binary DXF from R12 (AC1009) to 2018 (AC1032) and maps it to acadkit_core::Document. Geometry of planar entities is converted to world coordinates; seedocs/dxf/NOTES.mdfor every mapping decision.write()produces ASCII DXF in one of theDxfVersions.nativeexposes the group-code tokenizer for scanners and oracles.
Modules§
- native
- Low-level DXF group-code tokenizer (ASCII and binary).
Structs§
- Write
Options - Options for DXF output.
Enums§
- DxfVersion
- DXF output version.
Functions§
- inspect
- Inspects the DXF
HEADERsection without decoding tables, blocks, or entities. - read
- Reads a DXF file into the format-neutral model.
- sniff
- Returns true when
byteslook like DXF (ASCII or binary). - write
- Writes
docas ASCII/UTF-8 DXF text. - write_
bytes - Writes
docas DXF bytes usingoptions(honoring legacy 8-bitcodepageon pre-R2007 versions). - write_
bytes_ with_ report - Like
write_bytes(), returning both the encoded DXF bytes and conversion warnings. - write_
with_ report - Like
write(), but also returns the warnings for everything that could not be represented (skipped unknown entities, undefined block references, …).