Skip to main content

ModelCenter APIs 2026 R1 SP03

guiLoadFile

Last update: 30.07.2026

public 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