Skip to main content

ModelCenter APIs 2025 R1

saveFile

Last update: 16.07.2025

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