Swpilotcli undo one step

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli undo one step is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Execute one SolidWorks undo action on the active document (equivalent to pressing Ctrl+Z once). Use when you need to roll back the most recent operation quickly.

How to use this skill

Skill file

Undo One Step

Execute one undo action on the active SolidWorks document.

Prerequisites

What this Skill does

  1. Connects to the running SolidWorks instance
  2. Gets the active document
  3. Calls IModelDoc2.EditUndo2(1)
  4. Redraws graphics

When to use

Quick start

dotnet run --project ./sup_tools/swpilotcli-undo-one-step/scripts/UndoOneStep/SolidWorksConsole.csproj

Expected output:

Undo executed: 1 step.

Reference

See API_REFERENCE.md for return codes and API details.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.