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
Value Returned
|
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
Return to top