Model.convertinclude#

Model.convertinclude(id, shortname, flag)#

Converts a regular include file into an include transform include file or vice versa.

Parameters:
  • id (unsigned int) – The include ID, or 0 to use shortname.

  • shortname (hwString) – The short name of the include file. This can be empty if id is specified other than 0.

  • flag (unsigned int) –

    1 - Convert a regular include into an include transform include

    2 - Convert an include transform include into a regular include

Example#

Convert regular include file with ID 10 into an include transform include file#
import hm
import hm.entities as ent

model = hm.Model()

model.convertinclude(id=10, shortname="", flag=1)

model.convertelements(
    source_solver="Abaqus",
    destination_solver="Optistruct",
    source_element_type="CONN3D2",
    destination_element_type="JOINTG",
)