get_defvar

Provides access to the internal variables within Designer and returns its value. This command also prints the value of the Designer variable on the Log window.

 

get_defvar variable

Arguments

variable

The Designer internal variable.

Supported Families

All

Exceptions

Example

Example 1: Prints the design name on the log window.

 

   get_defvar “DESIGN”

set variableToGet "DESIGN"

set valueOfVariable [get_defvar $variableToGet]

puts "The value is $valueOfVariable"

See Also

set_defvar