Model.nodemarkaddtempmark#

Model.nodemarkaddtempmark(collection)#

Places a node on the temporary node state.

Parameters:

collection (Collection) – The collection containing the node entities to be placed on the temporary node state.

Note

Placing nodes on the temporary collection prevents nodes from being deleted and identifies temporary nodes with a yellow circle.

Example#

Place the nodes with IDs 100 , 101 , 102 , and 103 on the temporary node collection#
import hm
import hm.entities as ent

model = hm.Model()

model.nodemarkaddtempmark(
    collection=hm.Collection(model, ent.Node, [100, 101, 102, 103])
)