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