Expand description
Clean-room reader for MicroStation DGN V7 (ISFF) and V8 (OLE compound file) drawings.
Contract used by the cadkit facade: sniff and read. The native module
exposes the lossless layers (container streams, pages, raw elements, decoded element
data) for advanced users.
Layering: container (cfb, zlib pages / V7 record stream) -> records
(native) -> mapping to cadkit_core::Document.
Re-exports§
pub use native::structure::StructureReport;pub use native::structure::check_structure;pub use writer::DimensionPolicy;pub use writer::SeedPrepareOptions;pub use writer::StripSeedOptions;pub use writer::StripSeedReport;pub use writer::StrippedSeed;pub use writer::V8Seed;pub use writer::WriteOptions;pub use writer::repack_v8;pub use writer::seed_has_raster_template;pub use writer::strip_seed_v8;pub use writer::write_v8;pub use writer::write_v8_with_seed;pub use symbology::Symbology;
Modules§
- cfb
- Minimal read-only reader for the Compound File Binary format (OLE2 / “CFB”).
- native
- Lossless native layer.
- palette
- Default DGN color palette.
- symbology
- Typed access to the native DGN symbology the reader keeps in
props. - writer
- Seed-based DGN V8 export; unsupported data returns an error.
Functions§
- inspect
- Inspects the DGN V7 TCB or V8 summary/model header without decoding graphic elements.
- read
- Reads a whole DGN V7 or V8 file into the format-neutral model.
- sniff
- Returns true when
byteslook like a DGN file: a V7 design file header, or a compound file whose root storage holds theDgn~Hstream (other OLE files such as.docor.xlsare rejected). Reads only headers and the compound file directory.