pc:gen
Entry point for PartCAD generation when the user has not said whether they want a
single part, an assembly, or a 2D sketch. The text after the command
($ARGUMENTS) is the description of what to build. Decide which it is, tell the
user your choice, then follow that flow — passing the same description through.
Decide: part, assembly, or sketch?
- Part →
/pc:gen-part. One continuous piece of 3D geometry — a bracket, a
gear, a housing, a knob. Modeled as a single script, even when intricate.
- Assembly →
/pc:gen-assembly. Several distinct 3D components that fit or
move relative to each other — a gearbox, a robot arm, a body with a lid,
anything joined by fasteners.
- Sketch →
/pc:gen-sketch. A 2D profile, outline, or blueprint — a gasket
shape, a plate outline, a cross-section to be extruded later.
Heuristics:
- "2D", "profile", "outline", "sketch", "cross-section", "blueprint" → sketch.
- One noun, "a"/"single", one manufacturing process, one printed/machined piece
→ part.
- Plurals, "with", "attached to", "... and a ...", moving joints, fasteners, or
named sub-components → assembly.
If it is genuinely ambiguous, ask one short question. Otherwise proceed with your
best judgment and state which you picked — the user can redirect.
Then
- Sketch → follow
/pc:gen-sketch.
- Part → follow
/pc:gen-part.
- Assembly → follow
/pc:gen-assembly (which itself uses /pc:gen-part for
any missing components).
1---2name: gen3description: Generate PartCAD geometry from a description, automatically deciding whether the request is a single part, a multi-part assembly, or a 2D sketch and following the matching flow. Use for /pc:gen or when the user asks to generate, create, or model something in PartCAD without saying whether it is a part, an assembly, or a sketch.4---56# pc:gen78Entry point for PartCAD generation when the user has not said whether they want a9single **part**, an **assembly**, or a 2D **sketch**. The text after the command10(`$ARGUMENTS`) is the description of what to build. Decide which it is, tell the11user your choice, then follow that flow — passing the same description through.1213## Decide: part, assembly, or sketch?1415- **Part** → `/pc:gen-part`. One continuous piece of 3D geometry — a bracket, a16 gear, a housing, a knob. Modeled as a single script, even when intricate.17- **Assembly** → `/pc:gen-assembly`. Several distinct 3D components that fit or18 move relative to each other — a gearbox, a robot arm, a body with a lid,19 anything joined by fasteners.20- **Sketch** → `/pc:gen-sketch`. A 2D profile, outline, or blueprint — a gasket21 shape, a plate outline, a cross-section to be extruded later.2223Heuristics:2425- "2D", "profile", "outline", "sketch", "cross-section", "blueprint" → **sketch**.26- One noun, "a"/"single", one manufacturing process, one printed/machined piece27 → **part**.28- Plurals, "with", "attached to", "... and a ...", moving joints, fasteners, or29 named sub-components → **assembly**.3031If it is genuinely ambiguous, ask one short question. Otherwise proceed with your32best judgment and state which you picked — the user can redirect.3334## Then3536- Sketch → follow **`/pc:gen-sketch`**.37- Part → follow **`/pc:gen-part`**.38- Assembly → follow **`/pc:gen-assembly`** (which itself uses `/pc:gen-part` for39 any missing components).