Elements by property value
bim_elements_by_propertyFind BIM elements whose property matches a condition, such as fire-rated doors on level 3, with filters for type, storey, operator, and value; returns the matched property set and value.
Instructions
Find elements whose property matches a condition, e.g. fire-rated doors on level 3: type=IfcDoor, storey=Level 3, property=FireRating, op=exists.
pset is optional and usually best left out: the same field lands in
Pset_DoorCommon on one exporter and a bespoke set on another, so by default
every property set on the element is searched. The matched set and value are
returned alongside each hit, so the answer says where it came from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | Comparison operator. | exists |
| pset | No | Restrict to this property set. Omit to search all. | |
| type | No | Entity type, e.g. IfcDoor. Subtypes included by default. | |
| value | No | Value to compare against (ignored by exists/missing). | |
| storey | No | Storey name or GlobalId. Substring match on the name. | |
| property | Yes | Property name, e.g. FireRating. | |
| name_contains | No | Case-insensitive substring of the element name. | |
| predefined_type | No | PredefinedType / surfaceType value, e.g. FIRE_RATED. | |
| include_subtypes | No | Match subtypes of `type`. |