Model.setcurrentinclude#

Model.setcurrentinclude(id, shortname)#

Specifies the include file into which HyperMesh should place newly created entities.

Parameters:
  • id (unsigned int) – The ID of the file. If this is 0, then HyperMesh uses the shortname to find the file.

  • shortname (hwString) – The shortname of the file, as defined when creating the include (see Model.createinclude()).

Note

If the ID is 0, and the shortname is empty (“”), then HyperMesh will place newly created entities in the main output file instead of an include file

Example#

Set inlcude file with id=2 as current to place newly created entities#
import hm
import hm.entities as ent

model = hm.Model()

model.setcurrentinclude(id=2, shortname="")