RunScript

Launches another script from within the script currently being executed.

UI Access Tools>Run Script
Parameters
Name Type Description
<SCriptPath> String Name or full path of the script to execute.

If the full path to the script is not specified, Twin Builder searches for the specified script in the following locations, in this order:

  1. Personal library directory.
  2. This is the PersonalLib subdirectory in the project directory. The project directory can be specified in the General Options dialog box (click >Tools > Options > General Options to open this dialog box) under the Project Options tab.

  3. User library directory.
  4. This is the userlib subdirectory in the library directory. The library directory can be specified General Options dialog in the box (click Tools > Options > General Options to to open this dialog box) under the Project Options tab.

  5. System library directory.
  6. This is the syslib subdirectory in the library directory. The library directory can be specified in the General Options dialog box (click Tools > Options > General Options to open this dialog box) under the Project Options tab.

  7. HFSS installation directory.
Return Value

Long

the return code for the script method.

 

Python Syntax RunScript (<ScriptPath>)
Python Example

oDesktop.RunScript("C:/Project/test1.vbs")