instantiate_family
Instantiates a parametric part family (L-bracket, flanged disc, or box enclosure) from parameters, so you can generate named models without manual modeling operations.
Instructions
Build a named part family from parameters instead of a manual op sequence.
Available families:
- "l_bracket": parameters leg_a, leg_b, thickness, width, optional hole_d.
An L-bracket is a cross-section swept along its width, not a footprint
extruded by its thickness — this template encodes that so you don't
have to re-derive it.
- "flanged_disc": parameters diameter, thickness, bolt_circle_diameter,
hole_diameter, optional bolt_count (default 6). Builds a disc with a
verified polar bolt-hole pattern.
- "box_enclosure": parameters outer_width, outer_length, outer_height,
wall_thickness, optional floor_thickness (defaults to wall_thickness).
Cuts the cavity with a separate cutter solid positioned at
z=floor_thickness, so the enclosure actually has a floor — a
sketch-based pocket from the base plane cannot leave one.
All created objects are named with name_prefix so multiple instances can
coexist in one document.
Args:
doc_name: The name of the document.
family: One of "l_bracket", "flanged_disc", "box_enclosure".
name_prefix: Prefix for every object this family creates.
parameters: Family-specific parameters (see the list above).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| family | Yes | ||
| doc_name | Yes | ||
| parameters | Yes | ||
| name_prefix | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |