Skip to main content

IApplication.ExecuteScriptCode(string,string,string,IScriptParams) Method

Namespace: NextDesign.Desktop

Description

Executes the given script code.

By specifying the basePath, you can use relative paths to external files used in the script code.
If not specified, the path of the project file will be used as the starting point for searching for external files if the currently open project has been saved.

Arguments

NameTypeDescription
codestringScript code
langstringScript language
- "cs": C#
basePathstringPath to start searching for external files (if null, the folder where the project file is stored)
scriptParamsIScriptParamsScript parameters

Return value

  • object

Annotation

The return value of the script returns the result object of the script's return statement.
If the script does not have a return statement, null is returned.