Change library part of elements
change_library_partSwap the library part of placed Archicad elements (objects, doors, windows, etc.) in one undo step, preserving position and orientation.
Instructions
Swaps the library part of placed objects, lamps, doors, windows, skylights, zones or symbol labels (e.g. replace a chair model, change a door type) in one undo step, keeping position/orientation. The new part must have the same type (Object for objects, Door for doors ...). keepParameters (default true) copies values of same-named, same-typed, visible, non-unique GDL parameters like Archicad does; keepSize (default true for doors/windows/skylights, false otherwise) keeps A/B. Extra params / sizeA / sizeB / height are applied afterwards. A top-level libraryPart applies to every element without its own. Returns [{guid, type, libraryPart, carriedOverParameters} | {error}].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elements | Yes | ||
| keepSize | No | Default for all elements: keep A/B sizes | |
| undoName | No | Name of the undo step | |
| libraryPart | No | New library part for all listed elements (localized name, index or {guid}) | |
| keepParameters | No | Default for all elements: copy matching parameter values (default true) |