cursor_loc#

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

Specify the x,y,z coordinates of the cursor location to be queried.

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.
Used in conjunction with the “query_ent_var: type time” and the “query_ent_var: constrain cursor” commands.
Args:
p0:

‘x_coord’ specify the x, y, z coordinate locations of the cursor in model space

p1:

‘y_coord’ specify the x, y, z coordinate locations of the cursor in model space

p2:

‘z_coord’ specify the x, y, z coordinate locations of the cursor in model space

Examples:
# 
# Specify part on which to perform query 
# 
ensight.part.select_begin(2)
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("time")
ensight.query_ent_var.number_of_sample_pts(84)
ensight.query_ent_var.begin_simtime()
ensight.query_ent_var.end_simtime()
ensight.query_ent_var.constrain("cursor")
ensight.query_ent_var.sample_by("value")
ensight.query_ent_var.cursor_loc(1.4870e+00,4.3663e-01,1.1934e+01)
# WARNING: following line includes OBSOLETE call (ensight.query_ent_var.variable).
ensight.query_ent_var.variable("temp")
ensight.query_ent_var.end()
ensight.query_ent_var.query()
# 
# Specify new curve to be current 
# 
Returns:

zero on success, non-zero on error