pyux.select_part - pytha-3d-cad/pytha-lua-api GitHub Wiki

Allows the user to select one or multiple parts in the scene.

pyux.select_part(allow_multi_selection [,text [,options]]) 
Parameter Type Description
allow_multi_selection boolean false: a single part can be selected. true: multiple parts can be selected
text string Text that will be displayed in the input prompt during the selection
options {...} Optional: reserved for future use

Return value

Type Description
{element_handle, ...} A table containing the element handles of the selected parts
nil If operation was cancelled

The function will open the part selection menu in the vertical menu. The script execution will be suspended until the user finished the selection.

See also:

pytha, pyux, pyux.highlight_element, pyux.clear_highlights, select_coordinate