Model.createpositionformech#

Model.createpositionformech(name)#

Creates a new position for a mechanism. The mechanism must have the enabled flag set to true for this to be possible.

Parameters:

name (hwString) – The name of the position to be created. If the provided name already exists, an incremental name will be used.

Example#

Translate node with ID 1 , 5.0 units along the y - axis#
import hm
import hm.entities as ent

model = hm.Model()

model.createpositionformech("newposition")