Model.dummyplacerootbodytopoint#
- Model.dummyplacerootbodytopoint(name, sx, sy, sz, tx, ty, tz, tolerance)#
Moves a dummy from a source point to a target point.
The mechanism must have the enabled flag set to true for this to be possible.
- Parameters:
name (hwString) – The name of the root body of the dummy.
sx (double) – The x-coordinate of the source point. This is usually the x-coordinate of the H-Point of the dummy.
sy (double) – The y-coordinate of the source point. This is usually the y-coordinate of the H-Point of the dummy.
sz (double) – The z-coordinate of the source point. This is usually the z-coordinate of the H-Point of the dummy.
tx (double) – The x-coordinate of the target point.
ty (double) – The y-coordinate of the target point.
tz (double) – The z-coordinate of the target point.
tolerance (double) – The tolerance allowed during the placement.
Example#
Move a dummy with root body named “ Pelvis Angle Gauge “ from ( 0.0,0.0,0.0 ) to ( 150.0,100.0,200.0 )#import hm import hm.entities as ent model = hm.Model() model.dummyplacerootbodytopoint( name="Pelvis Angle Gauge", sx=0.0, sy=0.0, sz=0.0, tx=150.0, ty=100, tz=200, tolerance=0.001, )