- A DWG placed while it is converted goes on the layer that was current
when Place started and, with `replace`, in place of the object selected
then, selected again unless it changed meanwhile. A layer the user made
current since stays current, as for other files read for Place.
- Place's checks run before the conversion starts, so a bad param or a
selection Replace can't swap (several objects, part of a symbol
instance) is reported at once and nothing is converted.
- The open progress window shows a DWG drawing being converted.
`file.cancelOpen` drops the conversion, so its dialog never opens, and
`file.openInBackground` closes the window while it goes on in the
status bar. Both commands' help text and `docs/mcp.md` say so.
* Docs: add a script for editable numbered grids
* Docs: bound the numbered-grid example and validate label numbers
---------
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Opening or placing a DWG drawing from the desktop UI converted it on the
UI thread before DXF Import Options opened, so the window stopped
responding until a large drawing was converted. File > Open, Open Recent,
the Home screen, a drop and Place now convert it on a job of their own;
the status bar says "Converting <name>..." and the dialog opens once the
conversion is done. A drawing that can't be converted is reported and
does not go on the recent files. Commands run at once (MCP, scripts)
still convert before they return.
`thumbnail` exits after 20 seconds, but a DWG worker it started kept
running after that. The CLI now starts the worker with
`--dwg-worker-seconds 20`, and a worker started that way exits with code
1 once its time is up.
The CLI `info` test requires the drawing cut to a third and the one cut
to its header to be refused. The File formats row and the DWG entry in
docs/target-app-parity.md name the remaining limits: the web build and
R1.x and R2.x drawings return an error that says to save as DXF.
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
The visible-text exception applies only to text inside the group that is
the clipping path. Text beside the clipping path in the clipping group
does not keep it clipping, and a clipping group nested in the mask counts
only when its own clipping path keeps geometry.
The progress line for Document.pathItems now says that removeAll()
still deletes the paths of a clipping group when visible text that
lays out glyphs stays in it, as docs/mcp.md describes.
Steps between live rectangles interpolate each key's radius after it is
fitted to its sides, not the stored radius. Their positions lie between
the keys' only on a straight spine; on an edited or replaced spine each
step sits on the spine.
Another open dialog, such as New Swatch, keeps its own scrim over the
canvas while the picker is open. The doc line in docs/mcp.md and the
comment in dialogs/color_picker.rs now say so.