Swpilotcli sketch on face

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli sketch on face is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Open a new sketch on a specified face or plane. Accepts either a named plane (e.g. 前基準面) or world face coordinates in mm (e.g. 25,10,-20). Enters sketch editing mode and stays there — follow up with sketch-draw to draw geometry, then extrude-boss or extrude-cut.

How to use this skill

Skill file

swpilotcli-sketch-on-face

Open a new sketch on a face or reference plane. Enters sketch editing mode.

Prerequisites

Usage

dotnet run --project ./sup_tools/swpilotcli-sketch-on-face/scripts/SketchOnFace/SketchOnFace.csproj -- [plane_name | x,y,z]

Arguments

| Arg | Description |

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

| plane_name | Name of a reference plane (e.g. 前基準面, 上基準面, 右基準面) |

| x,y,z | World coordinates (mm) of any point on the target face |

| (none) | Uses the currently pre-selected face or plane |

Examples

# Open sketch on the front plane
dotnet run ... -- 前基準面

# Open sketch on a face by world coordinates
dotnet run ... -- 25,10,-20

# Open sketch on the pre-selected face (no arg)
dotnet run ...

How it works

  1. If a plane name is given → selects it by name using SelectByID2
  2. If x,y,z coords are given → selects the face at those world coordinates
  3. Calls InsertSketch to enter sketch editing mode
  4. Stays in sketch — caller must run sketch-draw then extrude-boss/extrude-cut

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.