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
Name | Type | Description |
---|---|---|
code | string | Script code |
lang | string | Script language - "cs": C# |
basePath | string | Path to start searching for external files (if null, the folder where the project file is stored) |
scriptParams | IScriptParams | Script 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.