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
|
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
|
List of layer names and default color pairs for layers with default colors that were set using mptSetLayerDefaultColor. |
|
|
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