Search library parts
search_library_partsFind library parts in Archicad by localized name, type, or subtype. Filter by embedded status and retrieve GUIDs for placement.
Instructions
Finds library parts (objects, doors, windows, lamps, zone stamps, labels, skylights, macros ...) in the loaded libraries. Names are LOCALIZED — on a Russian Archicad search Russian words (e.g. 'стол' table, 'стул' chair, 'дверь' door, 'окно' window, 'светильник' lamp, 'кровать' bed, 'шкаф' cabinet, 'диван' sofa, 'унитаз' WC, 'раковина' sink, 'дерево' tree). The query is a case-insensitive substring; with several words all must match the name or file name. Exact and prefix matches come first. Filter by type, by subtype (category: a keyword like 'Furnishing', 'Plant', 'Light' or a template from get_library_part_subtypes), or embeddedOnly (parts created with create_library_part). Returns {libraryParts: [{index, name, guid, type, fileName, subtype}], total, hasMore}. Use the name or {guid} as libraryPart in create_objects / create_lamps / change_library_part.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Only these library part types | |
| limit | No | Maximum results (default 100) | |
| query | No | Substring(s) of the name / file name; omit to list everything matching the filters | |
| offset | No | Skip this many results (default 0) | |
| subtypeOf | No | Only descendants of this subtype: a keyword (GeneralGDLObject, ModelElement, BuildingElement, Furnishing, Beds, Structure, Column, Beam, Slab, Wall, Roof, Stair, Railing, Ramp, Covering, Footing, Plant, People, Animal, Traffic, TransportElement, StreetFurniture, SportField, DistributionElement, ElectricalElement, FlowTerminal, FlowEquipment, SolarPVPanels, DrawingSymbol, DocumentationElement, Marker, PropertyObjects, Light, WindowWall, CornerWindow, DoorWall, WallOpening, WallEnd, Skylight, Label, ZoneStamp) or a template name/{guid} from get_library_part_subtypes | |
| embeddedOnly | No | Only parts stored in the project's embedded library | |
| placeableOnly | No | Only parts that can be placed (default true; false also lists macros and templates) |