Skip to content

feat(viewer): add AutoCAD-style command-line point and mixed prompt input#348

Merged
mlightcad merged 1 commit into
mainfrom
feat/autocad-command-line-input
Jun 12, 2026
Merged

feat(viewer): add AutoCAD-style command-line point and mixed prompt input#348
mlightcad merged 1 commit into
mainfrom
feat/autocad-command-line-input

Conversation

@mlightcad

Copy link
Copy Markdown
Owner

Summary

  • Add \parseCommandLine\ to input handlers with \AcEdPointInputContext\ for reference/cursor-aware point parsing (absolute/relative Cartesian, polar, rubber-band distance)
  • Introduce \AcEdPromptInputSession\ to unify command-line keyword and typed input with AutoCAD-style precedence (geometric before keywords; strings try keywords first)
  • Route floating prompts and scripted input through the same parsing path; show localized invalid-input feedback on the command line

Test plan


  • pm test -- --testPathPatterns=AcEdPointHandler|AcEdPromptInputSession\ (9 tests)

  • px tsc --noEmit\ in \packages/cad-simple-viewer`n- [ ] Manually pick a point prompt with keywords and verify \50,30\ resolves as coordinates while \C\ resolves as keyword
  • Verify relative (@10,5) and polar (\10<90) point entry during interactive prompts

Made with Cursor

…nput

Unify scripted and interactive parsing via parseCommandLine handlers, add AcEdPromptInputSession for keyword/value precedence, and support relative/polar/rubber-band point entry.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mlightcad mlightcad self-assigned this Jun 12, 2026
@mlightcad mlightcad added the enhancement New feature or request label Jun 12, 2026
@mlightcad mlightcad merged commit e9b51dc into main Jun 12, 2026
2 checks passed
@mlightcad mlightcad deleted the feat/autocad-command-line-input branch June 12, 2026 05:40
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