ifcopenshell.util.representation

Module Contents

class ifcopenshell.util.representation.ResolvedItemDict

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

Initialize self. See help(type(self)) for accurate signature.

item: ifcopenshell.entity_instance
matrix: numpy.array
ifcopenshell.util.representation.get_context(ifc_file: ifcopenshell.file, context: str, subcontext: str | None = None, target_view: str | None = None) ifcopenshell.entity_instance | None
ifcopenshell.util.representation.get_representation(element: ifcopenshell.entity_instance, context: ifcopenshell.entity_instance | str, subcontext: str | None = None, target_view: str | None = None) ifcopenshell.entity_instance | None
ifcopenshell.util.representation.is_representation_of_context(representation: ifcopenshell.entity_instance, context: ifcopenshell.entity_instance | str, subcontext: str | None = None, target_view: str | None = None) bool
ifcopenshell.util.representation.resolve_items(representation: ifcopenshell.entity_instance, matrix: numpy.array | None = None) list[ResolvedItemDict]
ifcopenshell.util.representation.resolve_representation(representation: ifcopenshell.entity_instance) ifcopenshell.entity_instance

Resolve possibly mapped representation.

Parameters:

representation (ifcopenshell.entity_instance) – IfcRepresentation

Returns:

Representation resolved from mappings

Return type:

ifcopenshell.entity_instance