Skip to main content

ModelCenter APIs 2025 R1

setSourceFromString

Last update: 16.07.2025

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