end#

shock.end() int#

Delimit the modifications for shock part attributes.

These commands are used to set the attributtes for a shock part creation.
Args:
p0:

‘shock_command’ “shock: variable” commands

Examples:
#
# Specify the 3D parent part(s) 
# from which to create the shock part
#
ensight.part.select_begin(1)
#
# Compute the shock part by the Surface method
#
ensight.shock.begin()
ensight.shock.variable("Pressure")
ensight.shock.end()
ensight.shock.create()
#
# Now select the newly created shock part 
# for subsequent operations
#
ensight.part.select_begin(5)
#
# Specify the 3D parent part(s) 
# from which to create the shock part
#
ensight.part.select_begin(1)
#
# Compute the shock part by the Region method
#
ensight.shock.begin()
ensight.shock.variable("none")
ensight.shock.end()
ensight.shock.create()
#
# Now select the newly created shock part 
# for subsequent operations
#
ensight.part.select_begin(5)
Returns:

zero on success, non-zero on error