mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 05:22:58 -05:00
File > Open, File > Place and document.dxfInfo read DWG drawings. The craft-libs craft-dwg bridge converts the drawing to DXF bytes and the existing DXF reader reads them, so a DWG takes the DXF Import Options (layout, ratio or fit, lineweights, centering, merged layers) and comes in with the same layers, blocks and units as the DXF it converts to. What the conversion skips is listed in the warnings. - vectorcraft-cad: dwg module. On desktop the conversion runs in a copy of the program started with --dwg-worker (vectorcraft and vectorcraft-cli call serve_if_asked and use_own_worker), so a damaged file ends that copy, not the app. Inputs over 512 MiB, or a DXF rendition over 1 GiB, are refused. The last conversion (up to 128 MiB of DXF), or its error, is kept, so the dialog's layout list, each layout preview and the open read the file once. R1.x and R2.x drawings are refused with a hint to save as DXF. - Engine: a read-only dwg format (detected by content or by .dwg), in the open and place extension lists, not associated with the app by packaging. DWG leaves the unsupported list; exporting to it says to export DXF instead, Export As keeps it greyed out, and Save over the drawing is refused. - UI: the DXF Import Options dialog opens for .dwg files on Open, Place and a Shift-click with the place cursor. - NOTICE and licenses/acadrust-0.6.6/: acadrust 0.6.6 (MPL-2.0, unmodified) and its third-party notices. - Docs: docs/mcp.md, docs/file-format-parity.md, docs/roadmap.md and the progress line in docs/target-app-parity.md. Tests build DWG files from DXF drawings with craft-dwg's writer: a DWG comes in as its DXF does (layers, bounds, strokes, units, blocks), with the DXF options, through Place, and in dxfInfo; a truncated DWG is an error; saving or exporting a DWG writes nothing. Fixes #3450