Attach elements to issue
attach_elements_to_issueLink model elements to an issue in Archicad, marking them as highlights, proposed creations, deletions, or modifications for coordinated BIM change tracking.
Instructions
Attaches elements to an issue (one undo step). type Highlight (default) just points at them; Creation / Deletion mark them as proposed new / to-be-deleted elements; Modification either pairs existing elements (modificationPairs: original → proposed replacement) or, with plain elements, lets Archicad create a modified copy of each. Output: {issue: {guid, name}, type, attached: [guid], missing?: [guid of non-existing elements], modificationPairs?: [{original, modified}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | How the elements relate to the issue: Highlight (just point at them; default), Creation (proposed new elements), Deletion (elements proposed for deletion), Modification (proposed changes: pairs original → modified) | |
| issue | Yes | Issue (GUID or exact name, see get_issues) | |
| elements | No | Elements to attach | |
| undoName | No | ||
| modificationPairs | No | Only with type Modification (implied when omitted): pairs of original and modified elements |