Swpilotcli save drawing as copy

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli save drawing as copy is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Save a SolidWorks drawing (.slddrw) as a copy to a new file path, without changing the original document's path or closing it. Requires two arguments: source drawing path and output path. Use when you need to duplicate a drawing under a new name or location while keeping the original open and unmodi

How to use this skill

Skill file

SolidWorks Save Drawing As Copy

Save a copy of a SolidWorks drawing to a new path using the Copy flag, so the original document remains unaffected.

Prerequisites

What this Skill does

  1. Opens the source drawing silently (or reuses it if already open)
  2. Calls SaveAs3 with swSaveAsOptions_Copy | swSaveAsOptions_Silent
  3. The original document path is NOT changed — the file stays open as-is
  4. Reports output file size on success

Quick start

dotnet run --project ./sup_tools/swpilotcli-save-drawing-as-copy/scripts/SaveDrawingAsCopy/SaveDrawingAsCopy.csproj -- "C:\source\drawing.slddrw" "C:\output\drawingAA.slddrw"

Return codes

| Code | Meaning |

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

| 0 | Success |

| 1 | Missing arguments or general error |

| 2 | Cannot connect to SolidWorks |

| 4 | Cannot open source file |

| 5 | SaveAs3 failed |

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.