Skip to content

feat: add COPY and ROTATE command support with localized ribbon actions#222

Merged
mlightcad merged 1 commit intomainfrom
feat/cmds
Apr 18, 2026
Merged

feat: add COPY and ROTATE command support with localized ribbon actions#222
mlightcad merged 1 commit intomainfrom
feat/cmds

Conversation

@mlightcad
Copy link
Copy Markdown
Owner

Summary

This PR adds AutoCAD-style COPY and ROTATE workflows to the CAD simple viewer and connects the new commands to the viewer UI.

What Changed

  • added AcApCopyCmd with support for:
    • base point or displacement input
    • single and multiple copy modes
    • array copy placement with optional fit distribution
    • transient preview before committing new entities
  • added AcApRotateCmd with support for:
    • base point driven rotation
    • copy mode for creating rotated duplicates
    • reference-angle rotation, including point-based reference input
    • transient preview during rotation input
  • registered COPY and ROTATE in the document manager and exported both commands
  • added command aliases:
    • COPY -> CO
    • ROTATE -> RO
  • updated English and Chinese command/jig i18n strings for the new prompts and options
  • added a new Ribbon entry for Copy and wired it to the command map
  • added localized Ribbon labels for Copy in both English and Chinese

Impact

Users can now copy and rotate selected entities through both command input and the Ribbon UI, with localized prompts and interactive previews that match existing editing workflows.

@mlightcad mlightcad self-assigned this Apr 18, 2026
@mlightcad mlightcad added the enhancement New feature or request label Apr 18, 2026
@mlightcad mlightcad merged commit 98ed791 into main Apr 18, 2026
2 checks passed
@mlightcad mlightcad deleted the feat/cmds branch April 20, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant