Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

mptGetLayerDefaultColor

mptGetLayerDefaultColor(
d_techFileID 
[ t_layerName ] 
)
=> t_color / l_layerColor / nil 

Description

Returns either the default color for the given layer, or a list of layer-default color pairs.

Arguments

d_techFileID

Technology database ID.

t_layerName

Name of the layer. If not specified, a list of layer-default color pairs is output for the layers with default colors that were set using mptSetLayerDefaultColor.

Values Returned

t_color

The default color for the given layer.

l_layerColor

List of layer names and default color pairs for layers with default colors that were set using mptSetLayerDefaultColor.

nil

The default color was not returned due to an invalid technology database ID, layer name, or some other error.

Example

tfID=techGetTechFile( geGetEditCellView()~>lib )
mptGetLayerDefaultColor( tfID "m1" )
"mask1Color"

Returns the default color for layer m1 that was set using mptSetLayerDefaultColor. The returned value is shown in blue.

mptGetLayerDefaultColor( tfID )
(("m1" "mask1Color")("m2" "mask2Color"))

Returns a list of the layer and default color pairs for the layers for which the default color was set using mptSetLayerDefaultColor.


Return to top
 ⠀
X