forked from 1b-agent/opencadstudio-upstream
Plain -DGNIMPORT no longer writes drawings next to referenced files on its own: references are ignored unless the window (or the kept import settings) asks to translate them or attach them as underlays. A referenced file named relative to the host is looked up in the host's folder rather than the working directory. Its translated drawing takes a file name made from the model name with path separators and other reserved characters replaced, so it is always written in the reference's own folder. A reference placed in sub units is scaled by the same factor as its origin. Layer, block, text style and reference names read from the file are made valid symbol names (reserved characters become underscores). An instance of a cell that has no block (the point display cell, an empty or missing definition) is dropped instead of inserting a block that does not exist. "Prompt to overwrite" still keeps an existing translated drawing; the code now says so instead of implying a prompt. Co-Authored-By: Claude Opus 5.5 <[email protected]>