new_part
Create a new parametric 3D-printable part script from a standard template, optionally copying a bundled example or showing the generated code.
Instructions
Create parts//.py from the template (Dims dataclass, build(d), VARIANTS, views, checks). name: lower_snake_case. example: copy a bundled example instead (see list_parts), e.g. 'hole_coupon' to calibrate hole compensation. Returns a short confirmation; the template is the b123d-print://template resource (or read_part), show_code=True returns the new file's code here. Usually the next step is write_part with the whole script. If you haven't, call read_guide first; confirm the dimensions with the user before writing the script.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| example | No | ||
| show_code | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |