line_loc#

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

Specify the location of the line used for distance queries when the constraint is set to line_tool.

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.
Args:
p0:

‘end_point_id’ endpoints of the line, either 1 or 2

p1:

‘x_comp’ x , y, or z component of the corresponding line endpoint in model coordinates

p2:

‘y_comp’ x , y, or z component of the corresponding line endpoint in model coordinates

p3:

‘z_comp’ x , y, or z component of the corresponding line endpoint in model coordinates

Examples:
ensight.part.select_begin(1)
ensight.query_ent_var.begin()
ensight.query_ent_var.description("")
# WARNING: following line includes OBSOLETE call (ensight.query_ent_var.type).
ensight.query_ent_var.type("distance")
ensight.query_ent_var.number_of_sample_pts(20)
ensight.query_ent_var.constrain("line_tool")
ensight.query_ent_var.line_loc(1,2.7770e-01,7.7363e-02,1.1348e-02)
ensight.query_ent_var.line_loc(2,7.6144e-01,1.7007e-01,5.5697e-02)
# WARNING: following line includes OBSOLETE call (ensight.query_ent_var.variable).
ensight.query_ent_var.variable("Density")
ensight.query_ent_var.end()
ensight.query_ent_var.query()
ensight.curve.select_begin(0)
Returns:

zero on success, non-zero on error