ifcsverchok - add/update node descriptions

This commit is contained in:
Andrej730
2025-03-21 18:35:19 +05:00
parent e075c32a5a
commit ee2b836b84
10 changed files with 25 additions and 7 deletions
+10 -2
View File
@@ -19,6 +19,7 @@
import bpy
import ifcsverchok.helper
import ifcsverchok.helper as helper
from ifcsverchok.ifcstore import SvIfcStore
from bpy.props import StringProperty
from sverchok.node_tree import SverchCustomTreeNode
@@ -28,14 +29,21 @@ from sverchok.data_structure import updateNode, flatten_data
class SvIfcById(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.SvIfcCore):
bl_idname = "SvIfcById"
bl_label = "IFC By Id"
bl_description = "Get IFC elements by step id from the transient IFC file."
id: StringProperty(
name="Id(s)",
update=updateNode,
)
def sv_init(self, context):
self.inputs.new("SvStringsSocket", "id").prop_name = "id"
self.outputs.new("SvStringsSocket", "Entities")
helper.create_socket(self.inputs, "id", description="Step ids.", data_type="list[list[str]]", prop_name="id")
helper.create_socket(
self.outputs,
"Entities",
description="Entities.",
data_type="list[ifcopenshell.entity_instance]",
prop_name="Entities",
)
def draw_buttons(self, context, layout):
layout.operator("node.sv_ifc_tooltip", text="", icon="QUESTION", emboss=False).tooltip = (