Model.nodemarkclear#
- Model.nodemarkclear(node_collection, clearTempNodes, clearPreservedNodes)#
The function removes temporary nodes if
clearTempNodes=1and converts preserved nodes to regular nodes ifclearPreservedNodes=1. The preserved nodes which are not element nodes will simply be removed.- Parameters:
node_collection (Collection) – The collection containing the node input entities.
clearTempNodes (int) –
Option to remove temporary nodes.
0 - Offset
1 - On
clearPreservedNodes (int) –
Option to convert/remove preserved nodes.
0 - Off
1 - On
Example#
Remove temporary nodes and convert / remove preserved nodes with IDs 1 - 67#import hm import hm.entities as ent model = hm.Model() # Creating a collection that contains the nodes with IDs 1-67 filter_nodes = hm.FilterByEnumeration(ent.Node, list(range(1, 68))) nodes_collection = hm.Collection(model, filter_nodes) model.nodemarkclear( node_collection=nodes_collection, clearTempNodes=1, clearPreservedNodes=1 )