    

 ## On this page

  

 

 # guiLoadFile

 Last update: 30.07.2026 

public [guiLoadFile](gui-load-file.md)(modelFile: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)

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

modelFilePath of the file to load.#### Throws

[ModelCenterException](./../-model-center-exception/index.md)if something goes wrong loading the file