ifcopenshell.util
¶
Utility functions for extracting IFC data
Data in IFC files is represented using relationships between IFC entities. To extract data like “what properties does this wall have” involves looping through these relationships which can be tedious.
This module makes it easy to get commonly requested data from IFC relationships, such as properties of a wall, what elements are connected to pipes, dates from work schedules, filtering maintainable elements, and more.
The most commonly used utilities to help you get started are:
See
ifcopenshell.util.element
which contains a lot of useful functions for getting most common relationships on elements.See
ifcopenshell.util.element.get_psets()
to get all properties of an entity, like a wall.See
ifcopenshell.util.element.get_type()
to get the corresponding type object (e.g. the wall type definition) of a single occurrence (e.g. an individual wall).See
ifcopenshell.util.placement.get_local_placement()
to get the XYZ placement point of a single object.See
ifcopenshell.util.unit.calculate_unit_scale()
to convert between SI units and project units.See
ifcopenshell.util.shape
to calculate quantities from processed geometry.
Submodules¶
ifcopenshell.util.attribute
ifcopenshell.util.brick
ifcopenshell.util.classification
ifcopenshell.util.constraint
ifcopenshell.util.cost
ifcopenshell.util.data
ifcopenshell.util.date
ifcopenshell.util.doc
ifcopenshell.util.element
ifcopenshell.util.file
ifcopenshell.util.fm
ifcopenshell.util.generate_pset_templates
ifcopenshell.util.geolocation
ifcopenshell.util.ifc4x3dev_scrape_data_for_docs
ifcopenshell.util.placement
ifcopenshell.util.pset
ifcopenshell.util.representation
ifcopenshell.util.resource
ifcopenshell.util.schema
ifcopenshell.util.selector
ifcopenshell.util.sequence
ifcopenshell.util.shape
ifcopenshell.util.shape_builder
ifcopenshell.util.system
ifcopenshell.util.type
ifcopenshell.util.unit