Model.elementtype#

Model.elementtype(config, type)#

Sets the global element type variable.

Parameters:
  • config (hwString) – The configuration whose global type is set with this function. This input can be specified as config number or config string label.

  • type (hwString) – The type whose global type is set with this function. This input can be specified as type number or type string label.

Examples#

Set the global element type of configuration 103 to type 3#
import hm
import hm.entities as ent

model = hm.Model()

model.elementtype(config="103", type="3")
Set the global element type of configuration tria3 to CTRIAR in OptiStruct profile#
import hm
import hm.entities as ent

model = hm.Model()

model.elementtype(config="tria3", type="CTRIAR")