Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.12 KB

File metadata and controls

49 lines (39 loc) · 1.12 KB

GetScriptResource

Description

Return the script text of the specified script resource.

FUNCTION GetScriptResource(
				scriptName : STRING;
				VAR script : DYNARRAY[] of CHAR;
				VAR python : BOOLEAN): BOOLEAN;
def vs.GetScriptResource(scriptName):
    return (BOOLEAN, script, python)

Parameters

Name Type Description
scriptName STRING The script name identifying the resource.
script DYNARRAY[] of CHAR Return the script text.
python BOOLEAN Return if the script text is a python script.

Examples

resultOK := GetScriptResource('Example', script, TRUE);
import vs

# Return the script text of the specified script resource.
scriptName = 'Example'

ok, script, python = vs.GetScriptResource(scriptName)
vs.Message('GetScriptResource returned: ' + str((ok, script, python)))

See Also

VS Functions: CreateScriptResource | SetScriptResource | OpenScriptResPal

Version

Availability: from Vectorworks 2014

Category