cadkit
The file I/O and document facade of cadkit, an open-source CAD engine for building CAD applications. Read DWG, DGN (V7 and V8), DXF and CityGML 2.0 into one format-neutral model; write DXF, seed-based DGN V8, CityGML 2.0, SVG and JSON. DWG is read-only; DGN writing covers a documented V8 subset and requires a compatible seed. The parsers are pure Rust and use no vendor SDK.
Use header-only inspection, bounded stream I/O and Cargo features to select the file
handling your application needs. Documents support transforms, unit conversion, block
expansion, layer filtering and unused-definition purging through cadkit-core, re-exported
by this facade. Recoverable reader problems become document warnings; configurable limits
bound input handling.
let doc = open?;
for model in &doc.models
write?;
Format support, limits and test evidence are in the repository README.
The same core is available as a CLI (cadkit-cli),
for Python (pycadkit), for JavaScript
(cadkit-wasm) and as a C/C++ library
(GitHub Releases).
Modules and API migration
Adopt cadkit-geom for standalone analytic geometry,
cadkit-scene for GPU-independent plan/mesh data,
and cadkit-gpu for wgpu rendering separately.
Reading a file through this facade does not bring in a GPU runtime.
Version 0.5 introduces model/option constructors, non-exhaustive types, typed limit errors and versioned document JSON. See the 0.4 to 0.5 migration guide.
"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.