Product Documentation
Virtuoso Schematic Editor SKILL Functions Reference
Product Version IC23.1, November 2023

schSetEnv

schSetEnv( 
t_variableName 
g_value 
)
=> t / nil

Description

Sets the value of a schematic environment variable.

This function, along with the schGetEnv function, lets you program the values for various options within the schematic editor without using a form. Also, these functions complement the general environment variable mechanism, which lets you preset values at startup using a .cdsenv file.

Arguments

t_variableName

Name of the schematic environment variable whose value you want to set.; must be enclosed in quotation marks.

g_value

The value to give the variable. This varies depending on the variable. Refer to Virtuoso Schematic Editor User Guide for environment variable descriptions.

Value Returned

t

Set the value of a schematic environment variable.

nil

Either the named variable is not a schematic environment variable or the value is of the wrong type.

Examples

Sets the value of the maxLabelOffsetUU schematic environment variable to 0.0125. This value is then used by both the schematic extractor and the schematic rules checker.

result = schSetEnv( "maxLabelOffsetUU" 0.0125 )

Sets the value of the vicViewList environment variable for the cross-view-checker.

schSetEnv( "vicViewList" "layout symbol" )

Related Topics

schGetEnv


Return to top
 ⠀
X