query#

query_interact.query(p0: str) int#

Sets the type of query to be performed.

The exact location of the query, as specified above, may be modified by the query_interact: search command; i.e. if an exact set of coordinates or a cursor position is specified, the actual query may be done at the closest node to this point if query_interact: search closest_node has been specified.
Args:
p0:

‘query_type’

  • may be any of the following values:

  • surface

  • cursor

  • node

  • ijk

  • element

  • xyz

  • none

  • min

  • max

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("cursor")
ensight.query_interact.search("closest_node")
ensight.query_interact.create(12.0,15.1,10.3)
Returns:

zero on success, non-zero on error