fusion_addin_framework.utils.items_by_attribute¶
- fusion_addin_framework.utils.items_by_attribute(collection: adsk.core.ObjectCollection, attribute_name: str, attribute_value: Any) → List[Any]¶
Returns all objects of a collections whose attribute with the given name have the given value.
- Parameters
collection (adsk.core.ObjectCollection) – The object collection to query.
attribute_name (str) – The name of the attribute for comparison.
attribute_value (Any) – The value of the attribute for comparison.
- Returns
The found objects which met the attribute condition.
- Return type
List[Any]