mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 12:09:51 +00:00
ifcsverchok - autogenerate node categories from index
This commit is contained in:
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user