NXOpen.UF.Ui.SelectRoutingObjects

Ui.SelectRoutingObjects()

Refer to UF_UI_select_routing_objects for documentation.

Signature: SelectRoutingObjects(title, message, types, method, scope)

Parameters:
  • title (str) – Dialog Title or Null
  • message (str) – Cue line message to display
  • types (int) – Selectable Routing types - this should be specified by logically OR-ing the desired types from the list of types defined defined in uf_ui_route.h which have a prefix of UF_UI_ROUTE_SEL.
  • method (int) – Default (starting) Routing selection method. This should be one of the method definitions defined in uf_ui_route.h starting with the prefix: UF_UI_ROUTE_SEL_METHOD This will be set to last selection method used by the interactive user during this invocation. Using this, you can “remember” the user’s last method setting for the next call
  • scope (int) – Selection scope (include uf_ui.h) UF_UI_SEL_SCOPE_NO_CHANGE UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY UF_UI_SEL_SCOPE_WORK_PART UF_UI_SEL_SCOPE_WORK_PART_AND_OCC
Returns:

A Tuple

Return type:

A tuple consisting of (method,response,count,objects)

method(int): Modified value of method

response(int): UF_UI_BACK UF_UI_CANCEL UF_UI_OK

count(int): Count of objects selected. 0 if no objects selected.

objects(list of Tag): Array of object identifiers of the selected objects. This must be freed with UF_free.

License requirements: None