BASIC ScriptForge libraryPython scriptforge moduleScriptForge libraries build up an extensible collection of macro scripting resources for %PRODUCTNAME to be invoked from Basic macros or Python scripts.• Basic macros require to load ScriptForge library using the following statement: GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")
• Python scripts require an import from scriptforge module: from scriptforge import CreateScriptServiceTo learn more about how to create and execute Python scripts using the ScriptForge library, read the help page.The described modules and classes are invoked from user scripts as "Services". A generic constructor of those services has been designed for that purpose for each language:GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")Set oSvc = CreateScriptService("servicename"[, arg0, arg1, ...])from scriptforge import CreateScriptServicesvc = CreateScriptService('servicename'[, arg0, arg1, ...])The ScriptForge Basic library is available from %PRODUCTNAME 7.1 onwards. Python scriptforge module is available from %PRODUCTNAME 7.2 onwards.
Services provided by the ScriptForge library
CategoryServices%PRODUCTNAME Basic
Array
Dictionary
Exception
FileSystem
String
TextStream
Document Content
Base
Calc
Database
Document
User Interface
Dialog
DialogControl
UI
Form
FormControl Utilities
Basic
L10N
Platform
Services
Session
Timer
Restricted use for SF_Root, SF_Utils modules as well as internal methodsNote: Other ScriptForge undescribed modules are reserved for internal use. Their content is subject to change without notice.All ScriptForge Basic routines or identifiers that are prefixed with an underscore character "_" are reserved for internal use. They are not meant be used in Basic macros.