number_to_create#

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

Specify the number of clips, at the specified delta, to create.

This applies to XYZ and Plane clips, as well as IJK clips on block structured parts.
Requires the use of the clip: create_delta <delta> command in conjunction with this command.
Args:
p0:

‘instances’ number of clip instances to create

Examples:
#
# Select a parent part
#
ensight.part.select_begin(2)
ensight.clip.begin()
#
# Create a clip at y=1.5 and 4 additional instances at .5 delta
#
ensight.clip.value(1.5)
ensight.clip.create_delta(0.5)
ensight.clip.number_to_create(5)
ensight.clip.domain("intersect")
ensight.clip.tool("xyz")
ensight.clip.mesh_plane("Y")
ensight.clip.end()
ensight.clip.create()
Returns:

zero on success, non-zero on error