Skip to main content

ModelCenter APIs 2025 R2

showFileBrowseDialog

Last update: 16.07.2025

abstract fun 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

abstract fun 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