Skip to main content

ModelCenter APIs 2025 R2

guiLoadFile

Last update: 16.07.2025

abstract fun guiLoadFile(modelFile: String): Boolean

Loads a file in "GUI" mode, that is, unlike loadFile(...), will produce a prompt to the user to verify whether or not any currently opened model should be saved prior to loading the given file.

Return

false if the save was cancelled; true otherwise

Parameters

modelFile Path of the file to load.

Throws

ModelCenterException if something goes wrong loading the file

Connect with Ansys