Delete attributes
delete_attributesDelete Archicad attributes of one type in a single undo step; Archicad reassigns affected elements, and layers holding elements are refused unless force is enabled.
Instructions
Deletes attributes of one type (one undo step). Archicad reassigns elements that used a deleted attribute (check them afterwards). WARNING: deleting a LAYER deletes every element on it — the tool refuses layers that still hold elements unless force: true (move elements with modify_elements first). Pens, fonts, the Archicad layer and some built-in attributes (the last one of a type, Solid/Empty fills, line type 1) cannot be deleted. Returns {results: [{index, name, deleted: true} | {error}]}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"attributes": "<attributes>"
},
"name": "delete_attributes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Attribute type (pens and fonts cannot be deleted) | |
| force | No | Layers only: also delete layers that still hold elements (the elements are deleted too) | |
| undoName | No | ||
| attributes | Yes | Attributes to delete: names (localized), indices or {guid} |