revolve_partbyname#

clip.revolve_partbyname(*args, **kwargs) Any#

Clip by revolving a 1D part about an axis.

This command is functionally the same as “clip: revolve_part” except it takes a part name as the argument instead of a part id.
The end points for the 1D part are effectively extended to infinity during the clip.
The part is revolved around the defined origin and axis.
Args:
p0:

‘part_name’ part name to revolve

Examples:
#
# Select an existing clip part
#
ensight.part.select_begin(3)
ensight.part.modify_begin()
#
# Revolve part "clip line" about an axis
#
ensight.clip.tool("1d_part")
ensight.clip.revolve_part("clip","line")
ensight.clip.origin(-2.4838e-01,-2.3340e-01,1.8757e+00)
ensight.clip.axis(0.0000e+00,1.0000e+00,0.0000e+00)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error