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 = [ def make_node_categories() -> list[dict[str, list[str]]]:
{ node_categories = [{}]
"IFC": [ for category, nodes in nodes_index():
"SvIfcCreateFile", nodes = [node_name for idname, node_name in nodes]
"SvIfcReadFile", node_categories[0][category] = nodes
"SvIfcWriteFile", return node_categories
"SvIfcCreateEntity",
"SvIfcCreateShape",
"SvIfcReadEntity", node_categories = make_node_categories()
"SvIfcPickIfcClass",
"SvIfcById",
"SvIfcByGuid",
"SvIfcByType",
"SvIfcByQuery",
"SvIfcAdd",
"SvIfcAddPset",
"SvIfcAddSpatialElement",
"SvIfcRemove",
"SvIfcGenerateGuid",
"SvIfcGetProperty",
"SvIfcGetAttribute",
"SvIfcSelectBlenderObjects",
"SvIfcApi",
"SvIfcBMeshToIfcRepr",
"SvIfcSverchokToIfcRepr",
"SvIfcCreateProject",
"SvIfcQuickProjectSetup",
]
}
]
def make_node_list(): def make_node_list():