cut_opening
Cut rectangular door or window openings through walls in SketchUp Make 2017, creating holes in both wall faces, reveal faces, and optional frames; works on nested wall groups.
Instructions
Cut a rectangular opening (door/window) through a wall: holes in both wall faces, plus the side and head reveal faces, each oriented to point into the opening. The host group is found at any nesting depth and its composed world transform is used, so a wall nested inside another group works. from_floor:true means the opening starts at the wall's bottom: the bottom face is split and the middle removed, and no sill face is made. Refuses if an opening already exists there, so it cannot double-cut. New points snap onto existing vertices within ~3.5mm. Self-checks with classify_point (open at the centre of both faces, still covered just outside each edge and above the head) and reports the result. One undo step. Optionally builds the frame as a single U-shaped prism in one go. All lengths and coordinates are in metres.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | Which axis the wall faces are constant on | |
| frame | No | Optionally build a frame group around the opening | |
| group | Yes | Wall group name, at any nesting depth | |
| dry_run | No | ||
| x_range | No | Opening extent along X (use when axis is 'y') | |
| y_range | No | Opening extent along Y (use when axis is 'x') | |
| z_range | Yes | Opening extent in Z, in metres | |
| from_floor | No | Opening starts at the wall bottom: split the bottom face, no sill | |
| wall_faces | Yes | The two wall face coordinates, [outer, inner], in metres |