Model.createinclude#

Model.createinclude(id, shortname, fullname, parentid)#

Defines a new include file in the database.

Parameters:
  • id (unsigned int) – Use 0, if HyperMesh should take the next available ID. Specifying a non-zero value will overwrite any existing include that already uses that ID value.

  • shortname (hwString) – The last portion of the fullname (not including path). Short names must be unique.

  • fullname (hwString) – The include’s full name, including file path. Must be unique, and must conform to the shortname, as described above.

  • parentid (unsigned int) –

    The identifier for the file that includes this file.

    0 - Means the new file is included by the main file.

    Non-unique shortnames or fullnames produce errors.

Example#

Create a new include called “ mat1.dyn “ , use the main file as its parent#
import hm
import hm.entities as ent

model = hm.Model()

model.createinclude(id=0 ,shortname="mat1.dyn" ,fullname="C:/common files/mats/mat1.dyn" ,parentid=0)