surface_restricted#

ptrace.surface_restricted(p0: str) int#

Toggles trace creation to be surface restricted or not.

Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
#
# Selecting the parent part
#
ensight.part.select_begin(1)
#
# Setting some attributes before creation
# (the surface_restricted flag is being set here)
#
ensight.ptrace.begin()
ensight.part.description("Particle trace part")
ensight.ptrace.surface_restricted("ON")
ensight.ptrace.variable_offset(1.0000e-01)
ensight.ptrace.display_offset(0.5000e+00)
ensight.ptrace.total_time(2.0000e+02)
ensight.ptrace.emit_at_current_time("ON")
ensight.ptrace.end()
#
# Creating trace from a point
#
ensight.ptrace.create_pt()
Returns:

zero on success, non-zero on error