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

mptSetLayerDefaultColor

mptSetLayerDefaultColor(
d_techFileID 
t_layerName 
t_color 
)
=> t / nil 

Description

Sets the default color for a layer. This color will be assigned to newly created shapes and vias on the layer, and to gray shapes and vias on the layer when recoloring the design. The color will also be used to initialize the active color for this layer in the Palette.

Arguments

d_techFileID

Technology database ID.

t_layerName

Name of the layer.

t_color

The default color.

Valid values: "nil", "grayColor", "mask<mask number>Color", "alternating", where <mask number> is 1, 2, and so on, up to the number of masks defined in the technology library for the layer.

Values Returned

t

The default color was set for the layer.

nil

The default color was not set for the layer.

Example

tfID=techGetTechFile( geGetEditCellView()~>lib )
mptSetLayerDefaultColor( tfID "m1" "mask1Color" )
mptSetLayerDefaultColor( tfID "m2" "mask2Color" )

Sets the default colors for layers m1 and m2 to mask1Color and mask2Color, respectively, for the current edit cellview.


Return to top
 ⠀
X