cad-editor/src/io
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 66a73b00e1 fix: make viewports from external DXF/DWG files visible and enterable
Two root causes prevented paper-space viewports from loading correctly:

1. acadrust's ViewportStatusFlags::from_bits() maps bit 0 → is_on, but
   the real DXF/DWG spec uses bit 15 (0x8000) for "viewport on". Post-load
   fixup in io/mod.rs now corrects this for both DXF and DWG files: when
   bit 0 is clear but bit 15 is set, is_on is forced true and locked is
   derived from bit 14 (0x4000).

2. Some DXF exporters write id=-1 for all viewport entities instead of the
   standard id=1 (sheet) / id≥2 (user) convention. The is_user_viewport_id()
   helper now treats any id ≠ 0 and ≠ 1 as a user viewport, covering both
   the standard id≥2 and the non-standard id=-1 cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 21:57:02 +03:00
..
mod.rs fix: make viewports from external DXF/DWG files visible and enterable 2026-04-30 21:57:02 +03:00
obj.rs feat: OBJ mesh import (IMPORTOBJ / OBJIMPORT command) 2026-04-08 12:59:27 +03:00
pdf_export.rs Feat: implement CTB/STB plot style table with PDF export integration 2026-04-06 14:37:23 +03:00
plot_style.rs Feat: implement CTB/STB plot style table with PDF export integration 2026-04-06 14:37:23 +03:00
print_to_printer.rs feat: PRINT command — send layout to system printer via lp/lpr 2026-04-08 22:21:50 +03:00
step.rs feat: STEPOUT command — export 3D meshes to STEP AP203 2026-04-08 22:23:58 +03:00
stl.rs feat: STL export (STLOUT / EXPORTSTL command) 2026-04-08 00:46:05 +03:00
xref.rs feat: XREF management — auto-resolve, XATTACH, XREF, XRELOAD 2026-04-08 00:02:38 +03:00