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

Method get_load_group

src/ifc2ca/ifc2ca.py:123–133  ·  view source on GitHub ↗
(self, action: ios.entity_instance)

Source from the content-addressed store, hash-verified

121 return [item for item in self.file.by_type("IfcStructuralAction")]
122
123 def get_load_group(self, action: ios.entity_instance):
124 if action.HasAssignments is None:
125 return None
126 load_groups = [
127 item.RelatingGroup
128 for item in action.HasAssignments
129 if (item.RelatingGroup.is_a("IfcStructuralLoadGroup") and item.RelatingGroup.PredefinedType == "LOAD_GROUP")
130 ]
131 if len(load_groups):
132 return load_groups[0]
133 return None
134
135 def get_reactions(
136 self, result_group: ios.entity_instance | None = None, element: ios.entity_instance | None = None

Callers 2

get_actionsMethod · 0.95
add_action_loadsMethod · 0.95

Calls 1

is_aMethod · 0.45

Tested by

no test coverage detected