21.11.11 export_script
(Ask a Question)Description
This Tcl command explicitly exports the Tcl command equivalents of the current FlashPro Express session. With this command you can re-execute the same commands interactively or in batch.
You must supply a file name with the -file parameter and the -relative_path parameter to specify whether an absolute or relative path is used in the exported script file.
export_script \
-file {absolute or relative path to exported file} \
-relative_path <value>Arguments
| Parameter | Type | Description | 
|---|---|---|
file  | string  | Specifies the absolute or relative path and name for the exported TCL script.  | 
relative_path  | boolean  | Sets your option to use a relative or absolute path in the exported script; use 1 for relative path, 0 for absolute path.  | 
| Return Type | Description | 
|---|---|
| None | None | 
Error Codes
| Error Code | Description | 
|---|---|
None  | Parameter 'file' has illegal value.  | 
None  | Required parameter 'relative_path' is missing.  | 
Supported Families
| PolarFire® | 
| SmartFusion® 2 | 
Example
The following command exports the Tcl command equivalents of the current FlashPro Express session in exported.tcl:
export_script -file {./exported.tcl} -relative_path 1