mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Minor structural code review
This commit is contained in:
@@ -101,9 +101,9 @@ class Data:
|
||||
def load_structural_load_case_combinations(cls):
|
||||
cls.load_case_combinations = {}
|
||||
|
||||
for case in cls._file.by_type("IfcStructuralLoadGroup"):
|
||||
for case in cls._file.by_type("IfcStructuralLoadGroup", include_subtypes=False):
|
||||
if case.PredefinedType != "LOAD_COMBINATION":
|
||||
return
|
||||
continue
|
||||
data = case.get_info()
|
||||
del data["OwnerHistory"]
|
||||
|
||||
@@ -118,9 +118,9 @@ class Data:
|
||||
def load_structural_load_groups(cls):
|
||||
cls.load_groups = {}
|
||||
|
||||
for case in cls._file.by_type("IfcStructuralLoadGroup"):
|
||||
if case.PredefinedType != "LOAD_COMBINATION":
|
||||
return
|
||||
for case in cls._file.by_type("IfcStructuralLoadGroup", include_subtypes=False):
|
||||
if case.PredefinedType == "LOAD_COMBINATION":
|
||||
continue
|
||||
# if case.IsGroupedBy:
|
||||
# for rel in case.IsGroupedBy:
|
||||
# for product in rel.RelatedObjects:
|
||||
@@ -213,4 +213,4 @@ class Data:
|
||||
cls.load_connects_structural_activity(activity)
|
||||
member_data["ConnectsStructuralActivities"].append(activity.id())
|
||||
|
||||
cls.members[member.id()] = member_data
|
||||
cls.members[member.id()] = member_data
|
||||
|
||||
Reference in New Issue
Block a user