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

Method get_analysis_load_cases

src/ifc2ca/ifc2ca.py:237–244  ·  view source on GitHub ↗
(self, model: ios.entity_instance)

Source from the content-addressed store, hash-verified

235 ]
236
237 def get_analysis_load_cases(self, model: ios.entity_instance):
238 if model.LoadedBy is None:
239 return []
240 return [
241 item
242 for item in model.LoadedBy
243 if (item.is_a("IfcStructuralLoadCase") and item.PredefinedType == "LOAD_CASE")
244 ]
245
246 def get_analysis_cases(self, model: ios.entity_instance):
247 if model.LoadedBy is None:

Callers 2

get_load_casesMethod · 0.95
get_infoMethod · 0.95

Calls 1

is_aMethod · 0.45

Tested by

no test coverage detected