You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't set dimension styles interactively: dimstyle requires JSON params, but SPACE=Enter makes it untypeable and Ctrl+V pastes entities, not text #2715
Can't set dimension styles interactively: dimstyle requires JSON params, but SPACE=Enter makes it untypeable and Ctrl+V pastes entities, not text
Describe the bug
On the desktop build (Windows 11, CADCraft 0.17.0, Chinese UI), there is no way to configure a dimension style from the UI. The Format → Dimension Style... menu item and the DIMSTYLE command execute the same non-interactive command, and the command's JSON parameters cannot be typed because the command line treats SPACE as Enter.
Steps to reproduce
Open CADCraft and start a new drawing.
Type DIMSTYLE and press Enter → command line reports: invalid parameters for 'dimstyle': 'name' is required.
Open Format → Dimension Style... from the menu → the same error is printed in the command line; no dialog opens.
The command requires a JSON parameter containing a name field, e.g. dimstyle {"name":"MyStyle"}. But the command line treats SPACE as Enter (documented "回车/空格/右键重复"), so the JSON cannot be typed: every space immediately executes the partially typed command.
Verified via cadcraft-cli that the space-less form dimstyle{"name":"MyStyle"} is rejected as an unknown command, and the positional form dimstyle MyStyle is rejected as well ('name' is required).
Copy-paste does not help: Ctrl+V is bound to PASTECLIP (paste drawing entities). With plain text in the clipboard it reports: command 'pasteclip' is not available right now: the clipboard is empty.
Expected behavior
One (or more) of:
Format → Dimension Style... opens an interactive dialog (like AutoCAD's DIMSTYLE), or
the command line accepts a typeable parameter form (space-separated key=value such as dimstyle MyStyle arrowSize=2.5, quoted strings, or completion), or
Ctrl+V pastes text into the command line.
Workaround found
Writing the JSON commands into a .scr file and running the interactive SCRIPT command (Tools → Run Script...) works, because the file picker avoids typing spaces. This is fine for scripted/agent usage but not a normal interactive workflow.
Environment
OS: Windows 11 Pro 26100 (x64)
CADCraft 0.17.0 (Windows x64 desktop build, Chinese UI)
Headless verification with cadcraft-cli run --script: dimstyle {"name":"MyStyle","arrowSize":2.5,"current":true} works; dimstyle{"name":"MyStyle"} and dimstyle MyStyle fail.
Suggestion
Make dimstyleinteractive when invoked without arguments (open the "Dimension Style" dialog — the command catalog already declares the label "Dimension Style..." and the Format menu entry), and/or allow the command line to accept text paste via Ctrl+V and space-separated key=value parameters. That would match the project's "every menu item is a command" design while making dimension styles usable by interactive users.
Activity
ticket-craft commentedon Nov 3, 2026
Possible duplicate of #850.
This is being worked on in #2503.
Thanks! This ticket describes several separate problems:
It helps a lot if each one has its own ticket, so they can be tracked and fixed separately.
Possibly related: #1417 and #1809.
FredApps commentedon Nov 9, 2026
Closing as a duplicate of #850; the detailed requirements are linked there and the underlying issue remains open.