21.3.47 export_script

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

ParameterTypeDescription
filestringSpecifies the absolute or relative path and name to the exported script file.
relative_pathbooleanSets your option to use a relative or absolute path in the exported script; use 1 for relative path, 0 for absolute.

Error Codes

Error CodeDescription
NoneParameter 'file' has illegal value.
NoneRequired 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