symmetry_axis#

part.symmetry_axis(p0: str) int#

Specifies the rotational symmetry axis.

Used only when part: symmetry_type is set to rotational.
The axis is in reference to the part coordinate frame.
Args:
p0:

‘axis’

  • x

  • y

  • z

Examples:
ensight.part.select_begin(1)
ensight.part.modify_begin()
#
# turn on rotational symmetry about the x axis
# use 4 instances rotated 90 degrees
#
ensight.part.symmetry_type("rotational")
ensight.part.symmetry_axis("x")
ensight.part.symmetry_rinstances(4)
ensight.part.symmetry_angle(90.)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error