component#

profile.component(p0: float, p1: float, p2: float) int#

Specifies the contribution of a vector variable to be applied for profile generation.

If all the scale factors are set to 0.0, the magnitude of the vector will be used (this is the default).
Part selection and modify commands are used as needed since profiles are a part type based on a parent part.
Args:
p0:

‘x_scal’ scale factor to apply to the x, y, z components of the vector

p1:

‘y_scal’ scale factor to apply to the x, y, z components of the vector

p2:

‘z_scal’ scale factor to apply to the x, y, z components of the vector

Examples:
ensight.profile.variable("VITESSE")
ensight.part.select_begin(3)
ensight.part.modify_begin()
#
# Use the y-component of the vector
#
ensight.profile.component(0.0000e+00,1.0000e+00,0.0000e+00)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error