archicad_set_element_ids
Set Archicad element IDs explicitly, fix duplicate IDs with unique suffixes, or renumber elements with a prefix and number sequence; preview changes with dry run.
Instructions
Changes element IDs: explicit values, unique suffixes for repeated IDs (fixDuplicates) or a prefix + number sequence (numbering). Revert with archicad_undo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Explicit new IDs. | |
| dryRun | No | Only return what would change, without touching the model. | |
| elements | No | Explicit elements, as returned by other tools: [{"elementId": {"guid": "..."}}]. | |
| numbering | No | Renumber the elements in scope as prefix + zero-padded number, e.g. FU-001. | |
| elementType | No | Only elements of this type, e.g. 'Wall', 'Slab', 'Zone', 'Object', 'Window'. | |
| selectedOnly | No | Only the elements selected in Archicad. | |
| fixDuplicates | No | Give a unique ID to every repeated one in scope: the first keeps it, the others get a -2, -3... suffix. Empty IDs are left alone. |