type#

material.type(p0: str) int#

Set the resulting material part to be a domain or interface through/between the material selected.

Args:
p0:

‘type’

  • domain

  • interface

Examples:
#
# Select the parent part
#
ensight.part.select_begin(1)
#
ensight.material.begin()
#
# create a domain type material part
#
ensight.material.type("domain")
ensight.material.subdivide("2")
#
# use the two materials shown
#
ensight.material.select_byname_begin("matl_02","matl_03")
ensight.material.end()
ensight.material.create()
Returns:

zero on success, non-zero on error