Commit Graph

3 Commits

Author SHA1 Message Date
dotCooCoo c914f6963d DXF/DWG import: keep symbols apart only where their art differs
A block's symbol was looked up by its scale alone, so a placement whose
art the nesting limit cut short, or that left out a block placing one of
its ancestors, could hand that shortened art to a complete placement at
the same scale. The symbol key now also holds the depth where the
block's art reaches the nesting limit (counted under the ancestors it
places) and the ancestors it places within that limit.

The scale scan reuses a "yes" only while none of the blocks it went
into to reach the dashes is an ancestor, and keeps up to four of them;
it checks anonymous blocks with everything they inherit, as they are
drawn. Inserts on hidden layers are not followed. The new shape checks
have an import-wide work budget and a memory budget.
2026-12-05 13:15:01 -08:00
dotCooCoo 784491b1bd Merge main into feat/scripts-api-d10-print-options 2026-12-01 14:13:21 -08:00
dotCooCoo a666185cc6 Scripts: fix print, save and export gaps found after merging main
- PrintJobOptions.file reads back as a File that can be assigned again.
- Document.saveAs picks the format from the supplied name before following
  a link, trims the trailing dots and spaces Windows ignores, and keeps the
  .ai, .eps and .pdf rule for a name that is only a dot and an extension.
- A save or export that writes several files refuses a target that is not
  a regular file before any file is written, with the usual path redaction.
- Document.saveAs, Document.exportFile and app.open send command warnings
  to the Script Console.
- fitToPage = false keeps a base tiling mode and clears only a base fit.
- The print scale factors take 1 to 1000 at assignment.
- File and Folder keep their state in native slots, so an object made from
  File.prototype with a path property is refused as before, and logging,
  localize() and toSource() still read their own properties.
- bitmapResolution declares a finite maximum, so its reflection matches.
- The two new script file messages are English only.
2026-11-28 21:21:19 -08:00