MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_elements

Method get_elements

src/ifc2ca/ifc2ca.py:80–85  ·  view source on GitHub ↗
(self, model: ios.entity_instance | None = None)

Source from the content-addressed store, hash-verified

78 return self.file.by_type("IfcStructuralItem")
79
80 def get_elements(self, model: ios.entity_instance | None = None):
81 if model is not None:
82 return [
83 item for item in ifcopenshell.util.element.get_grouped_by(model) if item.is_a("IfcStructuralMember")
84 ]
85 return self.file.by_type("IfcStructuralMember")
86
87 def get_connections(self, model: ios.entity_instance | None = None):
88 if model is not None:

Callers 2

parse_modelMethod · 0.95
get_infoMethod · 0.95

Calls 2

is_aMethod · 0.45
by_typeMethod · 0.45

Tested by

no test coverage detected