mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
black formatting
This commit is contained in:
@@ -540,10 +540,7 @@ class AssignStructuralLoadCase(bpy.types.Operator):
|
||||
ifcopenshell.api.run(
|
||||
"aggregate.assign_object",
|
||||
self.file,
|
||||
**{
|
||||
"relating_object": self.file.by_id(self.work_plan),
|
||||
"product": self.file.by_id(self.load_case),
|
||||
},
|
||||
**{"relating_object": self.file.by_id(self.work_plan), "product": self.file.by_id(self.load_case),},
|
||||
)
|
||||
Data.load(IfcStore.get_file())
|
||||
return {"FINISHED"}
|
||||
@@ -560,10 +557,7 @@ class UnassignStructuralLoadCase(bpy.types.Operator):
|
||||
ifcopenshell.api.run(
|
||||
"aggregate.unassign_object",
|
||||
self.file,
|
||||
**{
|
||||
"relating_object": self.file.by_id(self.work_plan),
|
||||
"product": self.file.by_id(self.load_case),
|
||||
},
|
||||
**{"relating_object": self.file.by_id(self.work_plan), "product": self.file.by_id(self.load_case),},
|
||||
)
|
||||
Data.load(IfcStore.get_file())
|
||||
return {"FINISHED"}
|
||||
@@ -867,10 +861,7 @@ class EditStructuralLoad(bpy.types.Operator):
|
||||
ifcopenshell.api.run(
|
||||
"structural.edit_structural_load",
|
||||
self.file,
|
||||
**{
|
||||
"structural_load": self.file.by_id(props.active_structural_load_id),
|
||||
"attributes": attributes,
|
||||
},
|
||||
**{"structural_load": self.file.by_id(props.active_structural_load_id), "attributes": attributes,},
|
||||
)
|
||||
Data.load(IfcStore.get_file())
|
||||
bpy.ops.bim.load_structural_loads()
|
||||
|
||||
@@ -145,12 +145,11 @@ class BIMStructuralProperties(PropertyGroup):
|
||||
# load_group_attributes: CollectionProperty(name="Load Group Attributes", type=Attribute)
|
||||
active_load_group_id: IntProperty(name="Active Load Group Id")
|
||||
applicable_structural_load_types: EnumProperty(
|
||||
items=getApplicableStructuralLoadTypes, name="Applicable Structural Load Types",
|
||||
update=updateApplicableStructuralLoadTypes
|
||||
)
|
||||
applicable_structural_loads: EnumProperty(
|
||||
items=getApplicableStructuralLoads, name="Applicable Structural Loads"
|
||||
items=getApplicableStructuralLoadTypes,
|
||||
name="Applicable Structural Load Types",
|
||||
update=updateApplicableStructuralLoadTypes,
|
||||
)
|
||||
applicable_structural_loads: EnumProperty(items=getApplicableStructuralLoads, name="Applicable Structural Loads")
|
||||
load_group_activities: CollectionProperty(name="Load Group Activities", type=StructuralActivity)
|
||||
active_load_group_activity_index: IntProperty(name="Active Load Group Activity Index")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user