(self, action: ios.entity_instance)
| 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 |
no test coverage detected