VS:SetScriptResource
From Vectorworks Developer
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
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
Parameters
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.
Return Value
Return TRUE if the creation was successful. The routine will fail if script with the specified name does't exist.Version
Availability: from Vectorworks 2014See Also
VS Functions:VS:CreateScriptResource | VS:GetScriptResource | VS:OpenScriptResPal
VS Functions:
[[VS:CreateScriptResource]] | [[VS:GetScriptResource]]
| [[VS:OpenScriptResPal]]