Create building materials
create_building_materialsCreates Archicad building materials with cut fill, surface, intersection priority, and physical properties. Copies unspecified settings from a base material or project default.
Instructions
Creates building materials (the material of elements and composite skins: cut fill + pens, surface, intersection priority, physical properties). Unspecified settings are copied from 'basedOn' or, when omitted, from the first building material of the project — so give at least cutFill, surface and uiPriority for a meaningful material. Runs in one undo step. Returns {results: [{index, name, guid, created: true} | {..., existed: true} | {error}]} in input order; one failing item does not stop the others. Names are localized (Russian Archicad): look existing attributes up with get_attributes first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ifExists | No | Name collision handling for all items: 'error' (default), 'skip' (reuse the existing attribute), 'update' (apply the fields to it) | |
| buildingMaterials | Yes |