cadkit-dgn 0.5.3

Clean-room DGN V7 and V8 reader and seed-based DGN V8 writer.
Documentation

cadkit-dgn

Clean-room reader for DGN V7 (ISFF) and DGN V8 (CFB container) files, including tags, and a seed-based DGN V8 writer for a documented geometry and tag subset. Part of cadkit; format notes are in docs/dgn/FORMAT_NOTES.md.

Seed-based V8 output

Build DGN import/export into a CAD application using a neutral document and a compatible seed. V8Seed parses a single-design-model seed once for reuse; prepare_document handles explicit unit, dimension and symbology conversion. Rust accessors expose the seed palette, levels, font names and entries (font_entries, font_number) and timestamp; palette::exact_index / nearest_index match colors the way the writer does, and Symbology provides typed access to DGN property keys. check_structure reports the compound file directory and pages of any V8 file (sibling trees, free slots, page headers, record times) with stable warning codes; it needs no write feature. strip_seed_v8 copies a seed without its model's drawing content and identifying document properties, keeping its tables byte for byte and reporting the names that remain (the result is not anonymous). The write Cargo feature is enabled by default; disable default features for reading only.

There is no DGN V7 writer. V8 output covers the documented geometry/tag/raster subset; full format coverage and external application acceptance remain open (the acceptance protocol has not been run yet). See the writer contract and host integration guide.

Most applications should depend on the cadkit facade crate, which detects the format and re-exports this crate.

"DWG", "DGN" and "DXF" name file formats only; cadkit is not affiliated with or certified by any CAD vendor. Sources of format knowledge are listed in docs/PROVENANCE.md.

License

Copyright 2026 TNYCL (tnycl.com). Licensed under either of Apache License, Version 2.0 or MIT license at your option.