mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 12:09:51 +00:00
black .
This commit is contained in:
@@ -271,8 +271,8 @@ class ObjectMaterialData:
|
|||||||
"id": item.id(),
|
"id": item.id(),
|
||||||
"name": getattr(item, "Name", None) or "Unnamed",
|
"name": getattr(item, "Name", None) or "Unnamed",
|
||||||
"icon": icon,
|
"icon": icon,
|
||||||
"material_id": material_id
|
"material_id": material_id,
|
||||||
}
|
}
|
||||||
if item.is_a("IfcMaterialProfile") and not item.Name:
|
if item.is_a("IfcMaterialProfile") and not item.Name:
|
||||||
if item.Profile:
|
if item.Profile:
|
||||||
data["name"] = item.Profile.ProfileName or "Unnamed"
|
data["name"] = item.Profile.ProfileName or "Unnamed"
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ class BIM_PT_object_material(Panel):
|
|||||||
|
|
||||||
for set_item in ObjectMaterialData.data["set_items"]:
|
for set_item in ObjectMaterialData.data["set_items"]:
|
||||||
material_name = set_item["material"]
|
material_name = set_item["material"]
|
||||||
material_id = set_item['material_id']
|
material_id = set_item["material_id"]
|
||||||
if ObjectMaterialData.data["material_class"] == "IfcMaterialList":
|
if ObjectMaterialData.data["material_class"] == "IfcMaterialList":
|
||||||
row = box.row()
|
row = box.row()
|
||||||
row.label(text="IfcMaterial", icon="LAYER_ACTIVE")
|
row.label(text="IfcMaterial", icon="LAYER_ACTIVE")
|
||||||
@@ -379,8 +379,8 @@ class BIM_PT_object_material(Panel):
|
|||||||
self.layerset_bounds(box, active_object, location="Bottom_Interior")
|
self.layerset_bounds(box, active_object, location="Bottom_Interior")
|
||||||
|
|
||||||
def layerset_bounds(self, box, obj, location="Top_Exterior"):
|
def layerset_bounds(self, box, obj, location="Top_Exterior"):
|
||||||
set_usage = ObjectMaterialData.data.get('set_usage', {})
|
set_usage = ObjectMaterialData.data.get("set_usage", {})
|
||||||
layer_set_direction = set_usage.get('layer_set_direction')
|
layer_set_direction = set_usage.get("layer_set_direction")
|
||||||
if layer_set_direction:
|
if layer_set_direction:
|
||||||
if location == "Top_Exterior":
|
if location == "Top_Exterior":
|
||||||
if layer_set_direction == "AXIS3":
|
if layer_set_direction == "AXIS3":
|
||||||
|
|||||||
@@ -383,6 +383,7 @@ class BIM_PT_object_qtos(Panel):
|
|||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.operator("bim.perform_quantity_take_off")
|
row.operator("bim.perform_quantity_take_off")
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_material_psets(Panel):
|
class BIM_PT_material_psets(Panel):
|
||||||
bl_label = "Material Property Sets"
|
bl_label = "Material Property Sets"
|
||||||
bl_idname = "BIM_PT_material_psets"
|
bl_idname = "BIM_PT_material_psets"
|
||||||
|
|||||||
Reference in New Issue
Block a user