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
[CadCraft] No interactive DIMSTYLE: typing DIMSTYLE errors, and space bar prevents JSON form at the command line #850
Expected:
DIMSTYLE opens a Dimension Style Manager dialog (or at least option prompts, like LAYOUT and SETVAR do), so users can change text height, overall scale, units, etc.
Actual:
"invalid parameters for dimstyle: name is required"
Space submits the command line at Command:, so the JSON form can't be typed. Result: DIMSTYLE runs alone (same error), then "unknown command dimstyle{...}". Ctrl+V pastes into the drawing, not the command line, so pasting doesn't work either.
The only working route for an interactive user is SETVAR DIMSCALE / DIMTXT / DIMLUNIT etc. one at a time.
Likely cause:
crates/engine/src/cmd/props.rs ~line 44: dimstyle has no .interactive(...) and run_dimstyle (~671) requires name.
The cmd {json} form in Session::input_line (crates/engine/src/lib.rs ~1231) is unreachable from the keyboard because cmdline.rs submits on space at non-text prompts.
Suggested fix:
Add a dialog (or prompts: Set current / New / Modify ) for DIMSTYLE, also menu Format > Dimension Style...; optionally let a line starting with " {" keep spaces until the closing brace.
eljeffe (Discord username: eljeffe1023) — Discord user ID 735632114829099121
Submitted
2026-10-12 23:56:21 UTC
Discord server
ArtCraft (1359579021108842617)
Submitted from channel
1558917176453374102
Submission ID
TR-DZ864N2CXB
Submitted through Discord by eljeffe and created by the Ticket Relay integration on their behalf. The reporter may not have a GitHub account, so replies here will not reach them automatically.
Additional report #3079 requests an interactive Dimension Style Manager on Windows 11.
Reacted by 好叶( •̀ ω •́ )y, Luca Toniolo, hoboteaparty and foreachthing
I'm working on this. Typing DIMSTYLE or using the Format and Dimension menus will open a Dimension Style Manager with the styles list, a preview, and Set Current, New, Modify, Override and Compare. -DIMSTYLE will give command-line prompts for scripts. It comes right after the Properties palette changes for dimensions; the engine side of those is #954.
From #1417 and #1459: users want text height, text and line colour, text and dimension line offsets, extension lines on/off, alternate units, symbols and arrows; on large drawings dimension text is unreadable without it (Windows 11). From #1301: the Dimension > Dimension Style menu item fails too.
Related #2715 confirms the same DIMSTYLE and command-line JSON limitation in v0.17 on Windows; a SCRIPT file is a reported workaround. It also documents Ctrl+V being routed to PASTECLIP instead of command-line text.
Confirming this on the released Windows build, and one correction to the workaround suggested above.
Environment
CADCraft 0.19.0 (227e3c385b20129cf525775e3d9cbe78b722b3bb), Windows x86_64, installed build
Same behaviour through cadcraft-cli 0.19.0
1. The bug itself (confirms the report)
Format › Dimension Style… and Dimension › Dimension Style… both print
invalid parameters for `dimstyle`: `name` is required
and no dialog appears. cadcraft-cli commands shows why: dimstyle (menu ["Format", "Dimension Style..."]) and dimstyle.dimension (menu ["Dimension", "Dimension Style..."]) are both interactive: false with params: {name, current?, <style fields…>} — name is required, and the menu binding passes nothing.
2. SETVAR is not a working workaround
The report above says the only route for an interactive user is SETVAR DIMSCALE / DIMTXT / DIMLUNIT. On 0.19.0 that does not change the dimension style:
Saving the drawing and reading the DIMSTYLE table back out of the resulting DXF (ground truth, not the UI) shows nothing changed:
dimtxt dimasz dimtsz
Standard 0.18 0.18 0.0
ISO-25 2.5 2.5 0.0 <- current style, unchanged
SETVAR accepts and remembers the value but never applies it to the current dimension style — DIMASZ behaves the same. It looks like the DIM* names are recognised by setvar/getvar but not routed to the style, which fits the "not wired up" reading in the analysis above.
3. The JSON form works, so the plumbing is there
The command is functional as soon as it is given a name:
cadcraft-cli run drawing.dwg \
--cmd 'dimstyle {"name":"ARCH","dimtxt":250,"dimasz":0,"dimtsz":250}' \
--save out.dwg
Reading that DXF back:
ARCH dimtxt=250.0 dimasz=0.0 dimtsz=250.0 (and it becomes current)
So styles can be created, edited and made current — only the interactive path is missing. (dimtsz > 0 also gives the architectural tick arrowheads, which is what most metric users want here.)
4. A hint from a neighbouring dialog
Format › Multileader Style… opens a fully working dialog (styles list, arrowhead size, text height, landing gap, landing length, text style) even though the mleaderstyle command is alsointeractive: false with a required name. If that dialog is already a generic style editor for these objects, wiring the dimension one to it may be a much smaller change than writing a Dimension Style Manager from scratch.
I can confirm this issue is still valid in v0.20. I am making architectural plans and tried to modify a style imported in the AutoCad file and there was no way to do it.
Activity
Slopapalooza commentedon Oct 13, 2026
I'm working on this. Typing DIMSTYLE or using the Format and Dimension menus will open a Dimension Style Manager with the styles list, a preview, and Set Current, New, Modify, Override and Compare. -DIMSTYLE will give command-line prompts for scripts. It comes right after the Properties palette changes for dimensions; the engine side of those is #954.
aiongg commentedon Oct 19, 2026
From #1417 and #1459: users want text height, text and line colour, text and dimension line offsets, extension lines on/off, alternate units, symbols and arrows; on large drawings dimension text is unreadable without it (Windows 11). From #1301: the Dimension > Dimension Style menu item fails too.
dimstyle:nameis required #1389 as a duplicate of this issueticket-craft commentedon Oct 22, 2026
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.
ticket-craft commentedon Oct 22, 2026
Possibly related: #535, #126 and #381.
FredApps commentedon Nov 9, 2026
Related #1747 reports the same missing-name error when invoking DIMSTYLE from the menu or command line on macOS 26.7.1.
FredApps commentedon Nov 9, 2026
Related #2715 confirms the same DIMSTYLE and command-line JSON limitation in v0.17 on Windows; a SCRIPT file is a reported workaround. It also documents Ctrl+V being routed to PASTECLIP instead of command-line text.
DoggyHU commentedon Nov 12, 2026
Confirming this on the released Windows build, and one correction to the workaround suggested above.
Environment
227e3c385b20129cf525775e3d9cbe78b722b3bb), Windows x86_64, installed buildcadcraft-cli0.19.01. The bug itself (confirms the report)
Format › Dimension Style…andDimension › Dimension Style…both printand no dialog appears.
cadcraft-cli commandsshows why:dimstyle(menu["Format", "Dimension Style..."]) anddimstyle.dimension(menu["Dimension", "Dimension Style..."]) are bothinteractive: falsewithparams: {name, current?, <style fields…>}—nameis required, and the menu binding passes nothing.2.
SETVARis not a working workaroundThe report above says the only route for an interactive user is
SETVAR DIMSCALE / DIMTXT / DIMLUNIT. On 0.19.0 that does not change the dimension style:Saving the drawing and reading the
DIMSTYLEtable back out of the resulting DXF (ground truth, not the UI) shows nothing changed:SETVARaccepts and remembers the value but never applies it to the current dimension style —DIMASZbehaves the same. It looks like theDIM*names are recognised bysetvar/getvarbut not routed to the style, which fits the "not wired up" reading in the analysis above.3. The JSON form works, so the plumbing is there
The command is functional as soon as it is given a name:
cadcraft-cli run drawing.dwg \ --cmd 'dimstyle {"name":"ARCH","dimtxt":250,"dimasz":0,"dimtsz":250}' \ --save out.dwgReading that DXF back:
So styles can be created, edited and made current — only the interactive path is missing. (
dimtsz> 0 also gives the architectural tick arrowheads, which is what most metric users want here.)4. A hint from a neighbouring dialog
Format › Multileader Style…opens a fully working dialog (styles list, arrowhead size, text height, landing gap, landing length, text style) even though themleaderstylecommand is alsointeractive: falsewith a requiredname. If that dialog is already a generic style editor for these objects, wiring the dimension one to it may be a much smaller change than writing a Dimension Style Manager from scratch.Happy to test a build or a branch if that helps.
lordofscripts commentedon Nov 18, 2026
I can confirm this issue is still valid in v0.20. I am making architectural plans and tried to modify a style imported in the AutoCad file and there was no way to do it.