Skip to main content

ModelCenter APIs 2026 R1 SP03

setSourceFromFile

Last update: 30.07.2026

public setSourceFromFile(file: String)

Sets the script source code to the value of the given file. The source code is parsed baesd on the current language setting. The script language should be set before calling this function.

Parameters

file full path to the source file

Throws

ModelCenterException

Connect with Ansys