Skip to content

Can't set dimension styles interactively: dimstyle requires JSON params, but SPACE=Enter makes it untypeable and Ctrl+V pastes entities, not text #2715

Closed as not planned

Description

@MartinWu111

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

  1. Open CADCraft and start a new drawing.
  2. Type DIMSTYLE and press Enter → command line reports: invalid parameters for 'dimstyle': 'name' is required.
  3. Open Format → Dimension Style... from the menu → the same error is printed in the command line; no dialog opens.
  4. 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).
  5. 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 dimstyle interactive 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

  1. added
    bug
    duplicate
    on Nov 3, 2026
  2. ticket-craft commented on Nov 3, 2026

    @ticket-craft

    Possible duplicate of #850.

    This is being worked on in #2503.

    Thanks! This ticket describes several separate problems:

    • DIMSTYLE errors and opens no Dimension Style dialog from the menu or command
    • SPACE ends command input, so JSON parameters cannot be typed
    • Ctrl+V pastes drawing entities instead of text into the command line

    It helps a lot if each one has its own ticket, so they can be tracked and fixed separately.

    Possibly related: #1417 and #1809.

  3. FredApps commented on Nov 9, 2026

    @FredApps
    Contributor

    Closing as a duplicate of #850; the detailed requirements are linked there and the underlying issue remains open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugduplicatein progressmultiple issuespriority: highui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions