create_box
Create a rectangular 3D box group in SketchUp from width, depth, and height in mm, placed at an origin corner. Optionally assign a name, tag, material, or color and return its bounds.
Instructions
Create a rectangular box (group). width along X, depth along Y, height along Z, in mm. origin [x,y,z] mm is the lower-left corner. Missing tags/materials are created; color is '#RRGGBB' or a color name (only applied when the material is newly created; an existing material keeps its color). Returns: {id, persistent_id, type, name, tag, material, bounds_mm{min,max,size}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| name | No | ||
| color | No | ||
| depth | Yes | Size along the Y axis (mm), > 0 | |
| width | Yes | Size along the X axis (mm), > 0 | |
| height | Yes | Size along the Z axis (mm), > 0 | |
| origin | No | MIN corner (bottom-left-front) [x,y,z] mm, NOT the center; default [0,0,0] | |
| material | No |