create#

query_interact.create(args: Any) int#

Creates a query using the current settings.

The parameters vary based on the type of query being used. (See query_interact: query)
Query is performed at location specified or at closest node if query_interact: search closest_node is specified.
Args:
p0:

‘’

p1:

‘screen_x’ xy normalized screen coordinates (0.0 to 1.0)

p2:

‘screen_y’ xy normalized screen coordinates (0.0 to 1.0)

p3:

‘screen_y’ xy normalized screen coordinates (0.0 to 1.0)

p4:

‘screen_y’ xy normalized screen coordinates (0.0 to 1.0)

p5:

‘x_coord’ xyz model coordinates

p6:

‘y_coord’ xyz model coordinates

p7:

‘z_coord’ xyz model coordinates

p8:

‘z_coord’ xyz model coordinates

p9:

‘z_coord’ xyz model coordinates

p10:

‘node_id’ node id for query

p11:

‘node_id’ node id for query

p12:

‘node_id’ node id for query

p13:

‘i_coord’ ijk coordinates for query

p14:

‘j_coord’ ijk coordinates for query

p15:

‘k_coord’ ijk coordinates for query

p16:

‘k_coord’ ijk coordinates for query

p17:

‘k_coord’ ijk coordinates for query

p18:

‘element_id’ element id for query

p19:

‘element_id’ element id for query

p20:

‘element_id’ element id for query

p21:

‘x_coord’ xyz model coordinates

p22:

‘y_coord’ xyz model coordinates

p23:

‘z_coord’ xyz model coordinates

Examples:
#WARNING: the following line failed to translate because the function could not be found in the ensight python module
#   Actual error: module 'ensight' has no attribute 'variable'
ensight.sendmesg(r"variable: activate pressure")
ensight.query_interact.select_varname_begin("pressure")
ensight.query_interact.query("xyz")
ensight.query_interact.create(12.0,15.1,10.3)
Returns:

zero on success, non-zero on error