Create Parametric Box
create_box_parametricCreate a history-based rectangular box from a sketch rectangle and extrusion, accepting direct dimensions or parameter expressions like 'outer - 2 * wall_t' for parametric control.
Instructions
Create a history-based rectangular box via sketch rectangle + extrude (unlike create_box which uses TemporaryBRepManager). length/width/height accept a number (cm, Fusion internal unit) or a string expression referencing User Parameters (e.g. 'boxL', '56 mm', 'outer - 2 * wall_t'). Call create_parameter first to define named parameters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plane | No | xy | |
| width | Yes | Along sketch Y: number (cm) or expression | |
| height | Yes | Extrude distance: number (cm) or expression | |
| length | Yes | Along sketch X: number (cm) or expression | |
| origin_x | No | ||
| origin_y | No | ||
| origin_z | No | Z-offset of sketch plane (cm) | |
| body_name | No | Optional name for the resulting body | |
| component_name | No | Target component (omit for root) |