find_elements
Search Revit model elements by category, level, and parameter value, and retrieve specified properties in a single call.
Instructions
Find elements of a category, optionally filtered by level and by a parameter value, and return the parameters you ask for in the same call.
Prefer this over calling get_elements and then get_element_properties per element.
Args: category: Revit category name, e.g. 'Doors'. Localized names work too. level: Only elements on this level, e.g. 'Level 2'. Omit for all levels. parameter: Parameter to filter on, e.g. 'Fire Rating'. Omit for no filter. operator: equals, not_equals, contains, not_contains, empty, not_empty, greater, less. 'empty' finds elements where the parameter is unset. value: Value to compare against. Not needed for empty/not_empty. Comparisons are against the DISPLAY value in project units: if the project shows millimetres, 1.2 m must be given as '1200'. include_params: Parameter names to return for each element, e.g. ['Fire Rating', 'Width']. Values come back in project units. limit: Maximum elements to return (default 50). 'matched' in the response is the true number of matches even when the list is capped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ||
| limit | No | ||
| value | No | ||
| category | Yes | ||
| operator | No | equals | |
| parameter | No | ||
| include_params | No |