Set the script text of the specified script resource.
FUNCTION SetScriptResource(
scriptName : STRING;
script : DYNARRAY[] of CHAR;
python : BOOLEAN): BOOLEAN;def vs.SetScriptResource(scriptName, script, python):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| scriptName | STRING | The script name identifying the resource. |
| script | DYNARRAY[] of CHAR | The script text. |
| python | BOOLEAN | Pass TRUE if the script text contains python script. Otherwise it will be considered VectorScript. |
resultOK := SetScriptResource('Example', script, TRUE);import vs
# Set the script text of the specified script resource.
scriptName = 'Example'
script = 'Example'
python = True
ok = vs.SetScriptResource(scriptName, script, python)
if ok:
vs.Message('SetScriptResource succeeded')
else:
vs.Message('SetScriptResource failed')VS Functions: CreateScriptResource | GetScriptResource | OpenScriptResPal
Availability: from Vectorworks 2014