Skip to content

Close AutoCAD gaps: PDF underlays, contextual ribbon tabs, block authoring, palettes, eTransmit, CUI and more - #8

Merged
SkryxDev merged 2 commits into
mainfrom
autocad-gaps
Nov 10, 2026
Merged

SkryxDev merged 2 commits into
mainfrom
autocad-gaps

Conversation

@SkryxDev

@SkryxDev SkryxDev commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes most of the remaining AutoCAD gaps on the list (no 3D in this PR). Every feature is a command, so the ribbon, command line, scripts, control channel and MCP can all reach it, and the JSON forms never open a dialog.

Underlays and import

  • PDF underlays: PDFATTACH, clip, adjust and layers. PDFIMPORT turns PDF vectors into geometry.
  • DWF/DGN underlays report "not available yet".

Ribbon

  • Contextual tabs: Text Editor, Hatch Creation and Array.
  • Slide-out panels.

Blocks

  • Dynamic block authoring in the Block Editor: BPARAMETER and BACTION.

Palettes

  • DesignCenter (ADCENTER): lists blocks, layers and styles from another drawing and copies them in.
  • Tool Palettes: palettes you can edit, saved with the preferences.
  • Sheet Set Manager (SHEETSET): new, list, add, update, move, remove and publish.

Exchange

  • ETRANSMIT packages the drawing with its images, underlays, xrefs and fonts into a folder or a .zip, with a transmittal report.
  • POINTCLOUDATTACH reads XYZ text and LAS 1.0–1.4 into a block of points.

Layers

  • LAYTRANS maps layers, with wildcards and an optional standards drawing.
  • LAYWALK shows only the chosen layers and restores the others on exit.

Geolocation

  • GEOGRAPHICLOCATION and GEOREMOVE set or remove the drawing's latitude, longitude and north direction.

Customization

  • WORKSPACE, WSCURRENT and WSSAVE manage named workspaces. A workspace saves the palette layout, which bars show, the Quick Access Toolbar and the visible ribbon tabs.
  • CUI opens a Customize User Interface dialog. The Quick Access Toolbar can be edited and ribbon tabs can be hidden.
  • The workspace switcher in the title bar lists the saved workspaces.
  • Italian and Chinese translations for every new string.

Known limits

  • Lossless DWG saving is not in this PR. It is blocked on acadrust and will be done once acadrust is rewritten.
  • Dynamic blocks authored here don't survive a DWG save (an acadrust limitation). They do survive DXF.
  • Geolocation is kept in the DXF header variables LATITUDE, LONGITUDE and NORTHDIRECTION, not in a GEODATA object.
  • Sheet sets are stored in DraftCraft's own JSON .dcss format, not DST.
  • These formats report "not available yet": DWF and DGN underlays, RCP and RCS point clouds, and LAZ.
  • DWG Compare already existed, so there is nothing new for it here.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace --no-fail-fast
    • The only failures are the three known macOS-only tests: read_file_refuses_a_name_that_is_not_unicode, usage::non_unicode_output_names and thai_marks_stack_in_an_installed_font.
    • Locally, xtask's the_real_manifest_has_a_valid_version also fails, because this toolchain makes CARGO_MANIFEST_DIR relative. This branch doesn't change xtask, and CI is the check for it.
  • cargo check --target wasm32-unknown-unknown for the engine, io and UI crates. The zip dependency is only built off wasm.
  • Checked in the running app through the control channel: the Customize User Interface dialog, a custom Quick Access Toolbar, hidden ribbon tabs, switching to a saved workspace, and the Layer Translator.
  • New tests: workspaces_cui (UI), plus engine tests for LAYTRANS, LAYWALK, geolocation, point clouds, sheet sets and DesignCenter.

🤖 Generated with Claude Code

SkryxDev and others added 2 commits November 8, 2026 12:50
…nCenter, Tool Palettes, Sheet Set Manager

- PDFATTACH, PDFIMPORT, PDFCLIP, PDFADJUST, IMAGECLIP, IMAGEADJUST; PDF underlays read and written in
  DXF and DWG; ATTACH and the PDF commands pick a file of their kind.
- Contextual ribbon tabs (Text Editor, Block Editor, Hatch Editor, Array, Image, PDF Underlay) and
  slide-out panels on the Home tab.
- BPARAMETER (linear, point) and BACTION (stretch, move) in the Block Editor; the dynamic block
  survives a DXF round trip.
- ADCENTER lists a drawing file's blocks, layers, linetypes and styles and copies them in;
  TOOLPALETTES keeps palettes of command and block tools; SHEETSET manages sheet sets in
  DraftCraft's own JSON format and publishes them to PDF. All three are dock palettes opened from
  View > Palettes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d workspaces

- ETRANSMIT packages the drawing with its images, underlays, xrefs and fonts
  into a folder or a .zip, with a transmittal report.
- LAYTRANS maps layers (wildcards, an optional standards drawing) and LAYWALK
  shows chosen layers only and restores them on exit; both have dialogs.
- GEOGRAPHICLOCATION / GEOREMOVE store latitude, longitude and north direction
  in the LATITUDE, LONGITUDE and NORTHDIRECTION header variables.
- POINTCLOUDATTACH reads XYZ text and LAS 1.0-1.4 (LAZ, RCP and RCS are not
  available yet) into a block of points.
- WORKSPACE, WSCURRENT, WSSAVE and CUI: named workspaces (palette layout, bars,
  Quick Access Toolbar, ribbon tabs), a customizable Quick Access Toolbar and
  hideable ribbon tabs, with a Customize User Interface dialog and the
  workspace switcher listing them.
- Italian and Chinese translations for the new strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SkryxDev
SkryxDev merged commit 5ce0fb5 into main Nov 10, 2026
1 check passed
@SkryxDev
SkryxDev deleted the autocad-gaps branch November 10, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant