mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Run black on utils
This commit is contained in:
@@ -26,9 +26,7 @@ from sverchok.node_tree import SverchCustomTreeNode
|
||||
from sverchok.data_structure import updateNode, flatten_data
|
||||
|
||||
|
||||
class SvIfcGetProperty(
|
||||
bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.SvIfcCore
|
||||
):
|
||||
class SvIfcGetProperty(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.SvIfcCore):
|
||||
bl_idname = "SvIfcGetProperty"
|
||||
bl_label = "IFC Get Property"
|
||||
entity: StringProperty(name="Entity Ids", update=updateNode)
|
||||
@@ -50,9 +48,7 @@ class SvIfcGetProperty(
|
||||
self.outputs.new("SvStringsSocket", "value")
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
layout.operator(
|
||||
"node.sv_ifc_tooltip", text="", icon="QUESTION", emboss=False
|
||||
).tooltip = (
|
||||
layout.operator("node.sv_ifc_tooltip", text="", icon="QUESTION", emboss=False).tooltip = (
|
||||
"Get the value of a property of an IfcEntity. Can take multiple entity ids."
|
||||
)
|
||||
|
||||
@@ -72,9 +68,7 @@ class SvIfcGetProperty(
|
||||
self.value_out = []
|
||||
for entity in self.entities:
|
||||
try:
|
||||
self.value_out.append(
|
||||
ifcopenshell.util.element.get_psets(entity)[pset_name][prop_name]
|
||||
)
|
||||
self.value_out.append(ifcopenshell.util.element.get_psets(entity)[pset_name][prop_name])
|
||||
except:
|
||||
pass
|
||||
self.outputs["value"].sv_set(self.value_out)
|
||||
|
||||
Reference in New Issue
Block a user