mirror of
https://github.com/storytold/cadcraft.git
synced 2026-10-25 11:26:46 -06:00
acadrust writes every paper-space entity with entity mode 1 ("paper
space"), including those of *Paper_Space0, *Paper_Space1… and relies on
each block's entity list; AutoCAD reads mode 1 as the *Paper_Space
block's, so what was drawn on a second layout (and its viewports, in
drawings from AutoCAD with several layouts) landed on the first one, and
the second stayed empty. The DWG bridge now writes those entities owned
by their block (entity mode 0 with the owner handle), as the public DWG
specification describes; the first layout's entities stay mode 1.
The io tests read CADCraft's DWG back with acadrust (a dev-dependency,
the same version as cadcraft-dwg's) to check the modes as written.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
807 B
TOML
29 lines
807 B
TOML
[package]
|
|
name = "cadcraft-io"
|
|
description = "CADCraft file formats: DXF read/write mapping, SVG, PNG and PDF export"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
cadcraft-geom = { workspace = true }
|
|
cadcraft-color = { workspace = true }
|
|
cadcraft-doc = { workspace = true }
|
|
cadcraft-dxf = { workspace = true }
|
|
cadcraft-dwg = { workspace = true }
|
|
cadcraft-render = { workspace = true }
|
|
cadcraft-fonts = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
serde = { workspace = true }
|
|
miniz_oxide = "0.8"
|
|
quick-xml = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
# Reads CADCraft's DWG output as written (tests only; the same version as cadcraft-dwg's).
|
|
acadrust = "0.6.4"
|
|
tiny-skia = { workspace = true }
|