Model.readfile#

Model.readfile(filename, load_cad_geometry_as_graphics)#

Clears the currently loaded model content and opens the specified HyperMesh database file (*.hm) in the active model (i.e. HyperMesh window).

Parameters:
  • filename (hwString) – The full path and filename of the HyperMesh database file (*.hm).

  • load_cad_geometry_as_graphics (int) – Reserved for future development. Set it always to 0.

Example#

Read/open the HyperMesh database file “C:/temp/mymodel.hm” into the active model (i.e. HyperMesh window)#
import hm
import hm.entities as ent

model = hm.Model()

model.readfile(filename="C:/temp/mymodel.hm",load_cad_geometry_as_graphics=0)