21.3.47 export_script
(Ask a Question)Description
This Tcl command explicitly exports the Tcl command equivalents of the current Libero 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 constraint file } \
-relative_path <value>Arguments
| Parameter | Type | Description | 
|---|---|---|
| file | string | Specifies the absolute or relative path and name to the exported script file. | 
| 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. | 
Error Codes
| Error Code | Description | 
|---|---|
| None | Parameter 'file' has illegal value. | 
| None | Required parameter 'relative_path' is missing. | 
Supported Families
| Supported Families | 
|---|
| PolarFire® | 
| RTG4™ | 
| SmartFusion® 2 | 
| IGLOO® 2 | 
Example
The following command exports the Tcl command equivalents of the current Libero session.
export_script -file {./exported.tcl} -relative_path 1