Merge a .pln / .mod file
merge_fileMerges Archicad projects, archives, or modules into the current project as editable elements. Works around Archicad 26's lack of a merge API by placing a hotlinked module and breaking it.
Instructions
Merges another Archicad project (.pln), archive (.pla) or module (.mod) into this project as own, editable elements (Archicad 26 has no merge API: the file is placed as a hotlinked module and the hotlink is broken). Optional placement (position m, angle deg, mirrored, home story) and story range. keepHotlink: true leaves it as a live hotlink instead. IFC / DWG / DXF cannot be merged through the API (use Archicad's File > Interoperability > Merge). Refuses files that are already hotlinked (breaking would convert those too). Returns {merged, elementCount, countsByType, elements: [guid]}. Undo: two steps (place + break).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the temporary hotlink (default 'Merge - <file name>') | |
| path | Yes | Absolute path of an Archicad project (.pln), archive (.pla) or module (.mod, see export_module) file | |
| angle | No | Rotation around the insertion point in degrees, counter-clockwise (default 0) | |
| layer | No | Layer of the hotlink instance | |
| maxGuids | No | Return at most this many new element guids (default 500; counts are always complete) | |
| mirrored | No | Mirror the module (about its local Y axis) before rotating | |
| position | No | Where the source file's origin (0,0,0) lands in this project, meters (default 0,0,0; z = vertical offset) | |
| skipNested | No | Skip modules nested inside the source file | |
| storyIndex | No | Home story of the placed module in this project (default: the current story) | |
| storyRange | No | Hotlink all stories of the source (default) or a single one (then give sourceStory) | |
| keepHotlink | No | Keep it as a hotlinked module instead of breaking it into own elements (default false) | |
| sourceStory | No | Story index IN THE SOURCE FILE for a single-story hotlink (implies storyRange 'SingleStory') | |
| floorDifference | No | Advanced: story offset between the source's and this project's stories (default 0 / tool default) | |
| suspendFixAngle | No | Adjust fixed-angle elements (e.g. texts) to the module rotation | |
| adjustLevelDiffs | No | Adjust elevations of elements with relative level linking | |
| relinkWallOpenings | No | Re-link wall openings of the module | |
| ignoreTopFloorLinks | No | Ignore top links of walls/columns on the top story of the module |