variable_1#
- query_ent_var.variable_1(args: Any) int #
Specify the variables to be queried. The first variable can be any active variable. The second variable can be distance, time, or a second active variable.
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:
‘name’ name of the active variable. For variable_1 it can be any active variable. For variable_2, it can be DISTANCE if a non-scatter query over distance is being created, TIME if a non-scatter query over time is being created, or any active variable if a scatter query is being created. If plotted, variable_1 will be the Y-axis variable and varibe_2 will be the X-axis variable.
- Examples:
ensight.part.select_all() # # At line tool over distance query # ensight.query_ent_var.begin() ensight.query_ent_var.description("") ensight.query_ent_var.query_type("generated") ensight.query_ent_var.number_of_sample_pts(20) ensight.query_ent_var.constrain("line_tool") ensight.query_ent_var.constrain("line_tool") ensight.query_ent_var.line_loc(1,-7.5000e-01,1.1561e+00,1.0000e+00) ensight.query_ent_var.line_loc(2,1.7500e+00,1.1561e+00,1.0000e+00) ensight.query_ent_var.variable_1("temperature") ensight.query_ent_var.generate_over("distance") ensight.query_ent_var.variable_2("DISTANCE") ensight.query_ent_var.end() ensight.query_ent_var.query()
- Returns:
zero on success, non-zero on error