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

mptUpdateColor

mptUpdateColor(
d_cellViewID 
[ l_layers ]
[ g_depth ] 
)
=> t / nil

Description

Updates the color information from the bottom hierarchically, according to the specified depth and layers. This is useful when the color engine has been switched off/on, or a third party tool has been used to modify color information, leaving color information in an out-of-date state.

This function is similar to mptReColor but runs more quickly in cases when only some of the design is out of date, because valid color information is not recomputed. If the design has never been colored, this function works the same as mptReColor.

Arguments

d_cellViewID

The database ID of the top-level cellview where the color update is to be started and performed through the hierarchy.

l_layers

List of colorable layer names. If nil, all colorable layers are processed.

g_depth

Depth (hierarchy level) for bottom-up processing. If not specified, the entire hierarchy will be processed.

Values Returned

t

The color information update was successful.

nil

There was an error so the color information update was not completed.

Example

mptUpdateColor( geGetEditCellView() )

Updates the color for the hierarchy starting from the current top cell displayed in the current layout edit window.

mptUpdateColor( geGetEditCellView() list( "m1" "m2" ) )

Updates the color for the current edit cellview through the entire hierarchy on layers m1 and m2.

mptUpdateColor( geGetEditCellView() nil 2 )


Return to top
 ⠀
X