Modify pens
modify_pensModify pen colors, weights, and descriptions in an Archicad project. Edit either the active pen set or a stored pen table without affecting the active set.
Instructions
Changes pen colors, weights and descriptions (pens cannot be created: there are always 255). Without penTable the pens in effect in the model are changed; with penTable a stored pen set is edited (it does not become active). Read the current pens with get_attributes {type: 'Pen'} or {type: 'PenTable', detailed: true}. Returns {results: [{index, color, width} | {error}], activePenTable | penTable}.
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": {
"pens": "<pens>"
},
"name": "modify_pens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pens | Yes | [{index 1-255, color?: '#RRGGBB', width?: mm on paper, description?}] | |
| penTable | No | Pen set (PenTable attribute) to edit instead of the active pens | |
| undoName | No |