origin#

query_ent_var.origin(p0: float, p1: float, p2: float) int#

Specify a location which will be used to select the origin of a distance plot when performing the query on a 1D part.

This command must lie between either a “query_ent_var: begin” and “query_ent_var: end” pair, or a “query_ent_var: modify_begin” and “query_ent_var: modify_end” pair.
Only applicable with the “querey_ent_var: type distance” and “query_ent_var: constrain 1d_part” commands.
The end point closest to the origin specified will be used as the “origin” of the query, i.e., where distance = 0.
If the ID part is a closed loop (i.e., there are no end points), the closest point on the loop is used as the “origin”.
Args:
p0:

‘x_coord’ x, y, or z coordinate value in model coordinates

p1:

‘y_coord’ x, y, or z coordinate value in model coordinates

p2:

‘z_coord’ x, y, or z coordinate value in model coordinates

Examples:
ensight.query_ent_var.modify_begin()
ensight.query_ent_var.origin(2.3596e+00,1.8494e+00,1.1773e+01)
ensight.query_ent_var.modify_end()
Returns:

zero on success, non-zero on error