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}.
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 |