part_idbyname#
- query_ent_var.part_idbyname(args: Any) int #
Specify the 1D part name to query when performing a query over distance with a part constraint.
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:
‘part_name’ GUI name of the part
- Examples:
ensight.part.select_begin("Flow","Field") 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.part_idbyname("Line","Clip") ensight.query_ent_var.constrain("1d_part") ensight.query_ent_var.distance("arc_length") # 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() ensight.curve.select_begin(0)
- Returns:
zero on success, non-zero on error