AN 1002: Sharing Platform Designer Packaged Subsystems

ID 786899
Date 10/02/2023
Public
Document Table of Contents

4.4.4. Step 4c: Run run_system_script

run_system_script allows you to modify the internal system inside a subsystem. run_system_script runs Platform Designer scripting commands such that all commands within curly braces run as separate scripts. The run_system_script format is as follows:

run_system_script TEXT {
 } [<key-value pairs e.g: list w width> ]

You use the list inside this brackets to pass the package-level parameters and values to the run_system_script command. Within the braces, you can write a Tcl script to change the structure of the system.

Figure 15. run_system_script Example


The following code extracts the list of key-value pairs provided as arguments to the run_system_script command:

set args $__run_system_script_args_list__
set args_len [llength $args]