Swpilotcli close doc

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli close doc is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Close SolidWorks document(s). Supports three modes via argument: no argument or "nosave" closes the active document without saving; "save" silently saves then closes the active document (if file has never been saved, forces close without saving); "all" closes every open document without saving. Use

How to use this skill

Skill file

SolidWorks Close Document

Close the active SolidWorks document, with optional save. Or close all open documents at once.

Prerequisites

What this Skill does

Quick start

# Close active document, no save (default)
dotnet run --project ./sup_tools/swpilotcli-close-doc/scripts/CloseDoc/CloseDoc.csproj

# Close active document after saving
dotnet run --project ./sup_tools/swpilotcli-close-doc/scripts/CloseDoc/CloseDoc.csproj -- save

# Close ALL open documents
dotnet run --project ./sup_tools/swpilotcli-close-doc/scripts/CloseDoc/CloseDoc.csproj -- all

Return codes

| Code | Meaning |

|------|---------|

| 0 | Success |

| 1 | General error |

| 2 | Cannot connect to SolidWorks |

| 3 | No active document |

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.