Modify roofs
modify_roofsModify existing roofs (SinglePlane/MultiPlane) in Archicad by updating specified fields like geometry, slope, and surfaces while keeping others unchanged. Batch changes in one undo step.
Instructions
Changes existing roofs (the class SinglePlane/MultiPlane cannot change). SinglePlane: polygon, pivotLine, slopeAngle, risesToLeft, edges. MultiPlane: pivotPolygon, slopeAngle, levels, eavesOverhang, pivotEdges (per-plane pitch / gable end / overhang; edge indices of the stored pivot polygon as returned by get_element_details). Both: level, thickness, structure, surfaces, edge trim, floor plan attributes. Fields as in create_roofs. Only the given fields change; the others keep their values. Each item must be an element of this type (checked first; other items still run). Returns [{guid} | {error}] in input order, one undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roofs | Yes | Patches {guid, ...fields to change} | |
| undoName | No | Name of the undo step shown in Archicad |