Swpilotcli save drawing as

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli save drawing as is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Save the active SolidWorks drawing to a different format. Exports to the same directory as the drawing file with the same filename and a new extension. Supported formats: pdf, png, jpg, tif, dwg, dxf, ai, psd, edrw, html, slddrw. Default format is pdf if no argument is given. Optionally accepts a se

How to use this skill

Skill file

SolidWorks Save Drawing As

Export the active SolidWorks drawing to another format. Output is saved in the same directory as the source drawing.

Prerequisites

What this Skill does

  1. Reads the active drawing's file path to determine the output directory and filename
  2. Builds the output path: same directory, same name, new extension
  3. For PDF: creates an ExportPdfData object to export all sheets silently
  4. Calls SaveAs3 with the target format
  5. Reports output path and file size on success

When to use

Quick start

# Export as PDF (default)
dotnet run --project ./sup_tools/swpilotcli-save-drawing-as/scripts/SaveDrawingAs/SaveDrawingAs.csproj

# Specify format
dotnet run --project ./sup_tools/swpilotcli-save-drawing-as/scripts/SaveDrawingAs/SaveDrawingAs.csproj -- dwg
dotnet run --project ./sup_tools/swpilotcli-save-drawing-as/scripts/SaveDrawingAs/SaveDrawingAs.csproj -- png

# Override output path
dotnet run --project ./sup_tools/swpilotcli-save-drawing-as/scripts/SaveDrawingAs/SaveDrawingAs.csproj -- pdf "C:\output\myfile.pdf"

Expected output:

Active document: D:\Projects\AA-NDE-R.SLDDRW
工程圖 : AA-NDE-R.SLDDRW
格式   : PDF
輸出   : D:\Projects\AA-NDE-R.pdf
✓ 匯出成功
  大小: 359 KB
Task completed successfully.

Supported formats

| Argument | Extension | Description |

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

| pdf | .pdf | Adobe PDF (default) |

| png | .png | PNG image |

| jpg / jpeg | .jpg | JPEG image |

| tif / tiff | .tif | TIFF image |

| dwg | .dwg | AutoCAD DWG |

| dxf | .dxf | AutoCAD DXF |

| ai | .ai | Adobe Illustrator |

| psd | .psd | Adobe Photoshop |

| edrw | .edrw | eDrawings |

| html | .html | eDrawings Web HTML |

| slddrw | .slddrw | SolidWorks Drawing copy |

Reference

See API_REFERENCE.md for arguments, exit codes, and APIs used.

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.