Swpilotcli new part

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli new part is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Create a new SolidWorks Part document using the user's configured default Part template. Reads `swDefaultTemplatePart` from user preferences and calls `NewDocument`. Use when the user asks to create a new part, start modeling from scratch, or needs a fresh `.sldprt` to host a subsequent sketch/featu

How to use this skill

Skill file

SolidWorks New Part

Create a new empty Part document from the configured default Part template.

Prerequisites

What this Skill does

When to use

Quick start

dotnet run --project ./sup_tools/swpilotcli-new-part/scripts/NewPart/NewPart.csproj

Return codes

| Code | Meaning |

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

| 0 | Success |

| 1 | General error |

| 2 | Cannot connect to SolidWorks |

| 4 | Default Part template path is empty — configure one in SolidWorks Options |

| 5 | NewDocument returned null (bad template path or template missing) |

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.