ifcsverchok - autogenerate node categories from index

This commit is contained in:
Andrej730
2024-04-17 15:18:22 +05:00
parent 45dacc3612
commit 3b637a0234
+9 -30
View File
@@ -89,36 +89,15 @@ def nodes_index():
]
node_categories = [
{
"IFC": [
"SvIfcCreateFile",
"SvIfcReadFile",
"SvIfcWriteFile",
"SvIfcCreateEntity",
"SvIfcCreateShape",
"SvIfcReadEntity",
"SvIfcPickIfcClass",
"SvIfcById",
"SvIfcByGuid",
"SvIfcByType",
"SvIfcByQuery",
"SvIfcAdd",
"SvIfcAddPset",
"SvIfcAddSpatialElement",
"SvIfcRemove",
"SvIfcGenerateGuid",
"SvIfcGetProperty",
"SvIfcGetAttribute",
"SvIfcSelectBlenderObjects",
"SvIfcApi",
"SvIfcBMeshToIfcRepr",
"SvIfcSverchokToIfcRepr",
"SvIfcCreateProject",
"SvIfcQuickProjectSetup",
]
}
]
def make_node_categories() -> list[dict[str, list[str]]]:
node_categories = [{}]
for category, nodes in nodes_index():
nodes = [node_name for idname, node_name in nodes]
node_categories[0][category] = nodes
return node_categories
node_categories = make_node_categories()
def make_node_list():