Skip to main content

ModelCenter APIs 2026 R1

setSourceFromString

Last update: 18.06.2026

public setSourceFromString(script: String)

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

Parameters

script the source code

Throws

ModelCenterException

Connect with Ansys