Skip to main content

ModelCenter APIs 2026 R1 SP03

saveFile

Last update: 30.07.2026

public saveFile(sourceLocation: String, context: String): Boolean

***************************************************************************** Save a file into the context. If the save is successful passing the context to restore as the file ID will return the saved file.

Return

true if the file was saved successfully; false otherwise

Parameters

sourceLocation source file to save
context context by which to save

Throws

ModelCenterException

Connect with Ansys