Model.setgraphictranslation#

Model.setgraphictranslation(entity, x, y, z)#

Graphically translates the specified entity. Currently only supported for FE inside of components.

Parameters:
  • entity (Entity) – The object describing the entity.

  • x (double) – The x value of the graphic translation. A value of 0 indicates no translation.

  • y (double) – The y value of the graphic translation. A value of 0 indicates no translation.

  • z (double) – The z value of the graphic translation. A value of 0 indicates no translation.

Example#

Translate graphically the element with ID 3 along 50 units in the x-axis#
import hm
import hm.entities as ent

model = hm.Model()

model.setgraphictranslation(entity=ent.Element(model, 3), x=50.0, y=0, z=0)