Skip to main content

ModelCenter APIs 2026 R1 SP03

restoreFile

Last update: 30.07.2026

public restoreFile(fileID: String, targetLocation: String): Boolean

***************************************************************************** Restores the file by ID to the given location.

Return

true if a file with the given id was restored, false on failure

Parameters

fileID id of the file to restore
targetLocation disk location to restore the file

Throws

ModelCenterException

Connect with Ansys