NXOpen.UF.Ui.CreateFileboxWithMultipleFilters

Ui.CreateFileboxWithMultipleFilters()

Refer to UF_UI_create_filebox_with_multiple_filters for documentation.

Signature: CreateFileboxWithMultipleFilters(promptString, titleString, fileExtensions, numExtensions, defaultName)

Parameters:
  • promptString (str) – Text for standard prompt.
  • titleString (str) – The dialog title.
  • fileExtensions (list of str) – Caller has to supply the list of file extension strings. The elements of the list will decide which type of files need to be displayed in the selection dialog box for selection. The file extensions should be in the format “.XXX”. E.g “.prt”, “.sim”, “.dat” etc.
  • numExtensions (int) – The variable will provide the size of the file extensions list. It should not be more than 32.
  • defaultName (str) – The default name is used to initialize the Selection text field. If it’s an empty string or NULL string, the Selection text field is set to the current directory.
Returns:

A Tuple

Return type:

A tuple consisting of (filename,response)

filename(list of str): When OK is selected from the FSB dialog, filename is whatever was typed into the Selection field. Usually, it is a complete path+name if the string is automatically set by clicking on one of the files in the filter list. Note: An error message displays if no filename is entered; even if there is a directory path in the selection field. It is caller’s responsibility to allocate enough memory for the filename string.

response(int): UF_UI_OK: OK was selected UF_UI_CANCEL: CANCEL was selected

License requirements: None