Model.morphrenamehandle#

Model.morphrenamehandle(nameold, namenew)#

Renames a handle.

Parameters:
  • nameold (hwString) – Current name of handle.

  • namenew (hwString) – New name of handle.

Example#

Change the name of the handle from “nameold” to “namenew”#
import hm
import hm.entities as ent

model = hm.Model()

model.morphrenamehandle(nameold="bob", namenew="dave")

Note

The new name does not need to be unique since this function will create a unique name if a duplicate is detected.

This function is not called in HyperMesh. The general rename function is used instead.