Swpilotcli delete orphan sketches

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli delete orphan sketches is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Delete all orphaned sketches in the active SolidWorks part — sketch features not absorbed by any extrusion, cut, or other parent feature. Iterates the feature tree, removes every top-level `ProfileFeature`, then rebuilds. Use for cleanup after discarded geometry experiments, or to remove leftover co

How to use this skill

Skill file

SolidWorks Delete Orphan Sketches

Remove every sketch in the active document that is not consumed by a parent feature (extrude, cut, revolve, sweep, etc.).

Prerequisites

What this Skill does

When to use

Quick start

dotnet run --project ./sup_tools/swpilotcli-delete-orphan-sketches/scripts/DeleteOrphanSketches/DeleteOrphanSketches.csproj

Return codes

| Code | Meaning |

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

| 0 | Success (0 or more orphans removed) |

| 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.