Skip to main content

ModelCenter APIs 2026 R1 SP03

showFileBrowseDialog

Last update: 30.07.2026

public showFileBrowseDialog(title: String, filters: Array<String>, initialUri: String): String

Displays file selection dialog for loading and returns URL of selected file.

Return

URL of selected file, or null if none selected

Parameters

title title of dialog window
filters array of file type filters, may be null
initialUri initialUri to use in dialog, may be null

Throws

ModelCenterException

public showFileBrowseDialog(title: String, filters: Array<String>, initialUri: String, hwnd: Long): String

Displays file selection dialog for loading and returns URL of selected file.

Return

URL of selected file, or null if none selected

Parameters

title title of dialog window
filters array of file type filters, may be null
initialUri initialUri to use in dialog, may be null
hwnd the window handle to which to parent the dialog

Throws

ModelCenterException

Connect with Ansys