Skip to content

Offer: help implement M5 dynamic block parameters (grips, visibility, lookup, stretch/flip) #185

Open

Description

@jacobchadwick

Who we are

Glass/glazing shop drafter (@jacobchadwick) and an assistant. Inspired by ArtCraft’s creative-suite work; we need CAD more than creative apps. Highest priority for us: dynamic block parameters (ROADMAP M5) — grips, visibility states, lookup tables, stretch/flip/rotate/move/array, chaining, authoring in a block editor. We do not prioritize geometric constraints (M9).

What we’re offering

  1. Clean-room design notes from a LibreCAD-side effort (working name FlexBlocks): parameters, actions, chaining, visibility, lookups, value sets, grip UX, create-from-scratch authoring. Documented without proprietary vendor source.
  2. Implementation on a fork → PR in Rust, following your crates/ADRs — not dumping GPL LibreCAD plugin code into CADCraft (this repo is MIT/Apache; that add-on is GPL, so a clean reimplementation here is the right path).
  3. Shop-drawing review: door/window/storefront-style blocks, save/reload, grip usability.

Questions for maintainers

  • Confirm M5 is the right entry point, and whether an ADR / preferred data model for block parameters & actions already exists.
  • Preferred UI/docs naming for this feature set (we will match yours).
  • Prefer a short design RFC first, or a vertical-slice PR (e.g. linear stretch + flip + visibility) once you point at the right crates?

We can install CADCraft locally and work against main. Thanks for building this — happy to take a first slice you choose.

Activity

  1. codyvogt commented on Oct 12, 2026

    @codyvogt
    Contributor

    We use dynamic blocks heavily at work, so I'd like to help with this too.

    @jacobchadwick, have you started anything on a fork yet? I'd rather coordinate than duplicate. docs/gaps.md (F3) lists the block editor (BEDIT) as a prerequisite and it isn't started yet. I'm happy to take that first: an editor session, save/discard back to the definition, and the parameter/action data model with DXF round-trip. That would leave the parameters and actions themselves (linear/stretch, flip, visibility, lookup) free for your vertical slice. Or I can split it some other way if you've already got part of it going.

    Maintainers: is there a preferred data model or ADR for parameters and actions, or should one of us open a short design RFC first?

  2. codyvogt commented on Oct 12, 2026

    @codyvogt
    Contributor

    First piece is up: #824 adds a simple Block Editor for static blocks (BEDIT, BSAVE, BSAVEAS, BCLOSE). You open a block, edit it with the normal commands and save, and every reference updates. No parameters or actions yet. It's the base the dynamic-block work needs.

    One finding that may help: AutoCAD dynamic-block data (evaluation graph, parameters, actions, grips) already survives a CADCraft open and save, so the next step is reading it into a model rather than recovering it.

    My planned order, from the PR: read dynamic-block parameters and actions from files and show them in Properties, then evaluate them on references (visibility, lookup, stretch, flip…), then grips, then authoring in the Block Editor.

    @jacobchadwick, if you'd like to take part of that (authoring, or particular actions), say which and I'll leave it alone.

  3. codyvogt commented on Oct 13, 2026

    @codyvogt
    Contributor

    Progress update: everything below has landed (thanks @echelon for the quick reviews).

    Block Editor

    Dynamic blocks made in AutoCAD

    Fixes found along the way

    Checked against AutoCAD
    I drove AutoCAD (black-box, through its COM API, on synthetic and our own drawings) on files CADCraft saved:

    • AutoCAD reads the values CADCraft set;
    • visibility, lookup and stretch changes still work there afterwards.

    Next: the authoring side. That means drawing parameters and actions in the Block Editor and an authoring palette to add and edit them, then rotation, flip, XY and polar parameters and their grips.

    @jacobchadwick, if you want a piece of that, say so and I'll stay off it.

  4. marked Dynamic Blocks #877 as a duplicate of this issue on Oct 19, 2026
  5. V1dalTheAbidal commented on Nov 3, 2026

    @V1dalTheAbidal
    Contributor

    Hi @codyvogt, thanks for the block editor work in #1827, #2169 and #2184. A quick heads-up so we don't build the same thing twice: I have already built a lot of BEDIT authoring and would like to chat about how it fits with yours.

    What I have working locally (not pushed or proposed as PRs yet):

    • polar, XY, rotation, flip, alignment and base point parameters with their actions, and the 20 standard Parameter Sets
    • a Block Authoring palette
    • BTESTBLOCK, BACTIONSET, BASSOCIATE, BATTORDER, BCYCLEORDER, BCONSTRUCTION, BGRIPSET, BVMODE, BLOCKEDITLOCK, BACTIONBAR
    • BCPARAMETER with constraints and expressions
    • a native DWG reader and writer, so opening and saving a DWG never goes through DXF

    I will drop my own linear, point, visibility and lookup authoring and rebase onto your #1827, #2169 and #2184 instead of competing with them.

    Two caveats: I checked my work against AutoCAD-written DWG files that I can't share, and I haven't been able to test authored blocks in AutoCAD yet. Anything beyond reading real files is unproven until I can test on another machine.

    Two questions for you:

    1. How would you like to split the remaining work, so each of us takes different pieces?
    2. Is native DWG reading and writing welcome next to the acadrust bridge, or would you rather keep the bridge as the single path?
  6. codyvogt commented on Nov 3, 2026

    @codyvogt
    Contributor

    Hi @V1dalTheAbidal, thanks for the heads-up, and that's a lot of working authoring. Please go hard on block authoring. I'll have very little time for it over the next month or so (work), so on your question 1: take it, and treat the authoring side as yours.

    How I'd split it:

    When you push, small PRs stacked on #1827, #2169 and #2184 are easiest to review, and each can say which parity rows it touches in the description (PRs don't edit the parity docs now).

    On your caveat about AutoCAD: the files that matter are the ones an authored block is saved to, opened in AutoCAD. A block that AutoCAD reports as needing recovery is the failure to look for, so say so in the PR if a piece hasn't been opened in AutoCAD.

    On question 2 (native DWG next to the acadrust bridge): that isn't mine to decide. It's a maintainers' call, so I'd open a separate issue or a short RFC and tag them. My DWG fixes (#1725, #1728, #1000) are on the bridge, so a native path would need to replace or sit next to those.

    🤖 Generated with Claude Code

  7. V1dalTheAbidal commented on Nov 3, 2026

    @V1dalTheAbidal
    Contributor

    Thanks @codyvogt, that's a clear split and I'm happy with it. I'll take the authoring side.

    Thanks for the time you're giving this.

  8. V1dalTheAbidal commented on Nov 10, 2026

    @V1dalTheAbidal
    Contributor

    Taking BCONSTRUCTION (Convert, Revert, Show all, Hide all) from the authoring side we split earlier.

    I'm opening three small PRs: BSAVEAS keeping the source block's last saved definition, no grips on hidden objects, and BCONSTRUCTION itself stacked on those two. None of it touches #1827, #2169 or #2184; how Hide all interacts with visibility states and BVMODE will follow once #2169 is merged.

    If anyone already has BCONSTRUCTION in progress, tell me and I'll hold the third one.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions