mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 13:46:26 +00:00
black .
This commit is contained in:
@@ -75,10 +75,14 @@ class BIM_UL_bsdd_dictionaries(UIList):
|
|||||||
props = context.scene.BIMBSDDProperties
|
props = context.scene.BIMBSDDProperties
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
if item.status != "Active":
|
if item.status != "Active":
|
||||||
row.label(text=f"{item.name} ({item.organization_name_owner}) v{item.version} - {item.status}", icon="ERROR")
|
row.label(
|
||||||
|
text=f"{item.name} ({item.organization_name_owner}) v{item.version} - {item.status}", icon="ERROR"
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
row.label(text=f"{item.name} ({item.organization_name_owner}) v{item.version}")
|
row.label(text=f"{item.name} ({item.organization_name_owner}) v{item.version}")
|
||||||
row.prop(item, "is_active", icon="CHECKBOX_HLT" if item.is_active else "CHECKBOX_DEHLT", text="", emboss=False)
|
row.prop(
|
||||||
|
item, "is_active", icon="CHECKBOX_HLT" if item.is_active else "CHECKBOX_DEHLT", text="", emboss=False
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class BIM_UL_bsdd_classifications(UIList):
|
class BIM_UL_bsdd_classifications(UIList):
|
||||||
|
|||||||
@@ -125,7 +125,9 @@ class AddClassificationFromBSDD(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
continue
|
continue
|
||||||
has_classification = False
|
has_classification = False
|
||||||
for element in tool.Ifc.get().by_type("IfcClassification"):
|
for element in tool.Ifc.get().by_type("IfcClassification"):
|
||||||
if element.Name == dictionary["name"] or (tool.Classification.get_location(element) == dictionary["uri"]):
|
if element.Name == dictionary["name"] or (
|
||||||
|
tool.Classification.get_location(element) == dictionary["uri"]
|
||||||
|
):
|
||||||
self.report({"INFO"}, f"Classification '{dictionary['name']}' is already added to the project.")
|
self.report({"INFO"}, f"Classification '{dictionary['name']}' is already added to the project.")
|
||||||
has_classification = True
|
has_classification = True
|
||||||
if has_classification:
|
if has_classification:
|
||||||
|
|||||||
@@ -217,8 +217,8 @@ class TemplateListItemSpy(PanelSpy):
|
|||||||
"",
|
"",
|
||||||
parent.spied_data["active_dataptr"],
|
parent.spied_data["active_dataptr"],
|
||||||
parent.spied_data["active_propname"],
|
parent.spied_data["active_propname"],
|
||||||
0, # Index?
|
0, # Index?
|
||||||
None
|
None,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user