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

mptGetLayerColoringMethod

mptGetLayerColoringMethod(
d_cellViewID 
[ t_layerName ] 
)
=> t_coloringMethod / t_SDLcolorMethod / nil 

Description

Returns either the coloring method for the given layer, or the coloring method for the session, the design, and layers with a specified coloring method.

Arguments

d_cellViewID

The database ID of the cellview.

t_layerName

Name of the layer. If not specified, the coloring method for the session, the design, and layers with a specified coloring method are reported.

Values Returned

t_coloringMethod

The coloring method for the given layer.

Valid values: "connectedShapes", "colorSpacing"

t_SDLcolorMethod

The coloring method for the session, the design, and layers with a specified coloring method.

nil

The coloring method was not returned due to an invalid cellview, layer name, or some other error.

Examples

mptGetLayerColoringMethod( cv )
Session coloring method : connectedShapes
Design coloring method : connectedShapes
Layer Metal1 : colorSpacing

Returns the coloring method for the session, the design given by cv, and layers for which the coloring method is set. In this example, the colorSpacing coloring method was set for Metal1 using mptSetLayerColoringMethod, and both the session and design coloring methods are connectedShapes. The returned values are shown in blue.

mptGetLayerColoringMethod(cv "Metal1")
"colorSpacing"

Returns the coloring method for layer Metal1 of the design given by cv.


Return to top
 ⠀
X