ifcopenshell.util.pset
¶
Module Contents¶
- class ifcopenshell.util.pset.ApplicableEntity¶
Bases:
NamedTuple
- ifc_class: str¶
- performance_history: bool¶
- predefined_type: str | None¶
- value: str¶
- class ifcopenshell.util.pset.PsetQto(schema_identifier: str, templates=None)¶
- get_applicable(ifc_class='', predefined_type='', pset_only=False, qto_only=False, schema: ifcopenshell.util.schema.IFC_SCHEMA = 'IFC4') list[ifcopenshell.entity_instance.entity_instance] ¶
- get_applicable_names(ifc_class: str, predefined_type: str = '', pset_only: bool = False, qto_only: bool = False, schema: ifcopenshell.util.schema.IFC_SCHEMA = 'IFC4') list[str] ¶
Return names instead of objects for other use eg. enum
- get_by_name(name: str) ifcopenshell.entity_instance.entity_instance | None ¶
- is_applicable(entity: ifcopenshell.ifcopenshell_wrapper.entity, applicables: str, predefined_type: str = '', template_type: str = 'NOTDEFINED', schema: ifcopenshell.util.schema.IFC_SCHEMA = 'IFC4') bool ¶
applicables can have multiple possible patterns :
IfcBoilerType (IfcClass) IfcBoilerType/STEAM (IfcClass/PREDEFINEDTYPE) IfcBoilerType[PerformanceHistory] (IfcClass[PerformanceHistory]) IfcBoilerType/STEAM[PerformanceHistory] (IfcClass/PREDEFINEDTYPE[PerformanceHistory])
- is_templated(name: str) bool ¶
- schema¶
- templates = None¶
- templates_path¶
- ifcopenshell.util.pset.convert_applicable_entities_to_query(applicable_entities: list[ApplicableEntity]) str ¶
Get query supported by
ifcopenshell.util.selector.filter_elements()
.
- ifcopenshell.util.pset.get_pset_template_type(pset_template: ifcopenshell.entity_instance.entity_instance) Literal['PSET', 'QTO', None] ¶
Get the type of the pset template. If type is mixed or not defined, return None.
- ifcopenshell.util.pset.parse_applicable_entity(applicable_entity: str) list[ApplicableEntity] ¶
Parse ApplicableEntity string query to tuples.
- Parameters:
applicable_entity – IfcPropertySetTemplate.ApplicableEntity query.
- Returns:
List of ApplicableEntity tuples.