A REGION holds its outline as solid-modeler data. The import now reads
it and draws each face's boundary loops as one filled path (even-odd),
so holes stay open. Lines, circles, ellipses and spline edges keep their
shape; coedge and edge directions and a body's transform are applied.
The data is read from the text in groups 1 and 3 (DXF R13 to 2010,
ciphered or not) and from the binary data in the ACDSDATA section (DXF
2013 and later, with either binary signature), so DWG drawings converted
to DXF bring their regions too.
Damaged data is reported instead of drawn silently: edges of other curve
types come in straight, outlines that break off are closed with a
straight line, and a spline edge whose endpoint lies on two parts of a
self-crossing curve is trimmed at the nearer one, each with a warning.
Regions that can't be read, or that go over the record or path element
limits, are left out and listed.
The DXF import fuzz tests now include REGION entities and mutated text
and binary region data.
Paste on Windows never read the enhanced metafile that CAD and office
apps put on the clipboard as vector art: windows_formats had no entry for
EMF, so the app pasted their bitmap instead, or nothing. The Windows
clipboard holds an EMF as a handle (CF_ENHMETAFILE, which Windows also
makes from CF_METAFILEPICT), so the app now copies its records with
GetEnhMetaFileBits, at most 64 MiB, and pastes them through
clipboard.importEmf.
A .dxf, .dwg or HP-GL plot file copied in a file manager did not paste,
because file_flavour had no flavour for them, though Open and Place read
all three. They now paste as image/vnd.dxf, image/vnd.dwg and
application/vnd.hp-hpgl through the new command clipboard.importCad
{dataBase64, format: dxf|dwg|hpgl, center?}, read as document.open reads
the file. A file pastes this way only when its bytes are the format, so
a chart script named .plt is not taken for a plot.
Fixes#10819.
docs/mcp.md now says that a UI-only tool returns the window-required
message in a headless session, including one the closed-app choice
started, and returns the window lookup, launch or authentication error
otherwise.
docs/mcp.md now says which composite fonts file.place and links.embed
bring with editable art, when a placed font keeps its name, reuses an
equal one or takes a free name, and quotes the errors that stop the
placement before either document changes.
Polyface mesh and polygon mesh POLYLINEs were dropped with a warning.
They now come in as one path each, their height dropped:
- A polyface mesh draws each face's visible edges. A face with every
edge visible is a closed outline; an edge whose vertex number is
negative is left out. A face that names a vertex the mesh doesn't
have is left out with a warning.
- A polygon mesh draws its M and N lines, closed when the mesh is
closed in M or N. A smoothed mesh draws its surface vertices
(groups 73 and 74), not its frame. A mesh whose vertices don't fill
its grid is left out with a warning.
- 3DFACE leaves out the edges its group 70 hides, as polyface faces do.
Docs: docs/mcp.md (DXF import).
ui.dialog.set with fields and action "confirm" sets choice (and
applyToAll) and confirms the same Save Changes question in one request,
so no other dialog is answered between the two. The control-protocol row
now gives that form beside the two-request one, and the Save Changes test
checks the line and sends both one-request forms through the control
handler.
The canvas markers stay as they are when the caller's read folders do
not cover the same files as the document's, or when a script command
makes the call. The links.marked help text, docs/mcp.md and the
progress-doc line now say both, in place of "read folders differ".
The answer_dialog row in docs/mcp.md and the tool description still give
Don't Save as two calls and say to give set and action in separate calls
for this question. They no longer state that a single call sends a second
confirm: that holds only while ui.dialog.set with an action replies
without a dialog key, and the two-call sequence works either way. The
conventions test no longer rejects the one-call form.
Rotate draws a plane for every fill and stroke, but rendered mode only
checked the top fill and the strokes before drawing the image. A
gradient fill below a solid top fill was drawn as a flat color in the
rendered image instead of falling back to shaded faces with the
warning. Extrude & Bevel and Inflate still check only the top fill and
strokes they build solids from.
When placed editable art names a font family that its file does not define
as a composite font, and the document defines a composite font of that
name, the placed type was measured in the file's font but drew in the
document's composite font after placement. The placed type now gets a free
name such as "Name 2", so it keeps the font it was laid out in. Placing the
same art again reuses that name.
- The renaming also covers the fonts a file carries for its type and the
label font of a live dimension, so they stay paired with the renamed runs.
- An installed family is not renamed.
- The installed-name check applies only to the composite fonts a
placement adds, so a definition already in the document does not stop it.
- docs/mcp.md describes the renaming under file.place.
With Show Missing Links on, a links.marked call from a caller confined to
other read folders saw a linked file outside them as missing and wrote that
answer to the markers the canvas draws, putting a missing-link badge on a
file that is there. The call now updates the markers only when its read
folders match those the document was opened with and no script gate is in
force; otherwise the caller gets its own answer.
A window started with --control and no automation roots answers its
control requests unconfined, so `prefs.agents` saved any readRoot,
writeRoot or controlPort such a client sent. The agent folders it
widened then held for every later agent session.
`prefs.agents` now refuses a change whenever automation sent the
request (a control or MCP request, or a pass that carries injected
input), as `automation_is_acting` already does for commands that open
another app. Reading the settings still works. The params text, its
MCP mirror and docs/mcp.md say so.
The answer_dialog tool description, which MCP clients read from
tools/list, still gave Don't Save for the save-changes question as one
call that sets `choice` and confirms. The app answers that request with
the confirm's result alone, so answer_dialog sends a second confirm,
which fails once the document has closed or, during Close All or Quit,
answers the next document's question with Save.
The description now gives the same sequence as docs/mcp.md: set
`choice` to `dontSave`, then confirm in a second call. It names
file.closeAll beside app.quit and file.close, lists the values `choice`
takes, describes `applyToAll`, and says to give `set` and `action` in
separate calls for this question. The answer_dialog row of docs/mcp.md
says the same.
A test in the MCP crate checks that the description gives the two-call
sequence and applyToAll, and does not give the one-call form or
`discard`.