Skip to main content

ModelCenter APIs 2025 R2

showFileSaveDialog

Last update: 16.07.2025

abstract fun showFileSaveDialog(title: String, selectedFilter: ValueHolder<Integer>, initialFileName: String, filters: Array<String>, initialUri: String, hwnd: Long): String

Displays file selection dialog for saving 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
initialFileName the file name to populate the dialog with initially
selectedFilter the index of the filter selected by the dialog (inout)
initialUri initialUri to use in dialog, may be null
hwnd the window handle to which to parent the dialog

Throws

ModelCenterException

Connect with Ansys