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

mptGetLayerDefaultColorSetting

mptGetLayerDefaultColorSetting(
d_techFileID 
[ t_layerName ] 
[ b_getAll ]
)
=> t_color / l_layerColor / l_ColorSettings / nil 

Description

Returns the default color setting for the specified layer.

Arguments

d_techFileID

Technology database ID.

t_layerName

Name of the layer.

b_getAll

Gets all valid setting of the specified layer.

Values Returned

t_color

The color for the specified layer.

l_layerColor

List of layer names and color pairs for if layer name is not specified.

l_ColorSettings

List of all possible color settings for the layer if a layer name is specified and the value for the b_getAll argument is t.

nil

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

Example

techFileId = techGetTechFile(geGetEditCellView()~>lib)
mptSetLayerDefaultColor(techFileId "m1" "mask1Color")
mptSetLayerDefaultColor(techFileId "m2" "mask2Color")
mptGetLayerDefaultColorSetting(techFileId "m1")
"mask1Color"
mptGetLayerDefaultColorSetting(techFileId)
(("m1" "mask1Color")("m2" "mask2Color"))
mptGetLayerDefaultColorSetting(techFileId "m1" t)
("No Setting" "(Always) Mask1Color" "(Always) Mask2Color" "(Always) Mask3Color" "Alternating")

Return to top
 ⠀
X