system.sfc.startChart
This function is used in Python Scripting.
Descriptionβ
Starts a new instance of a chart. The chart must be set to "Callable" execution mode.
Client Permission Restrictionsβ
Permission Type: SFC Management
Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.
Syntaxβ
system.sfc.startChart(projectName, chartPath, parameters)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | projectName | The name of the project that the chart was created in. The project that this function is called in will be used if no name is provided, or if the function is called from outside a project, the default Gateway project name will be used. |
| String | chartPath | The path to the chart, for example "ChartFolder/ChartName". |
| Dictionary[String, Any] | parameters | A dictionary of arguments. Each key-value pair in the dictionary becomes a variable in the chart scope and will override any default. |
Returnsβ
String - The unique ID of this chart.
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Code Snippet
# The following will start an SFC with a dictionary of values to use inside the chart
args= {"var1":10, "Var2":15,"Var3":1}
path = "ChartFolder/ChartName"
sfcID = system.sfc.startChart(path, args)