dbSetOccShapeColorLocked
dbSetOccShapeColorLocked(
l_occShape
g_setLocked
)
=> t / nil
Description
Changes the color state of the specified occurrence shape. You can set the color state for occurrence shapes with types Path, PathSeg, Polygon, and Rect.
Arguments
|
|
Value Returned
|
Returned in case of an error. An error occurs when an attempt is made to: |
Examples
Creates a one-level occurrence shape rect0, then sets it color to mask1Color and locks the color.
cv = dbOpenCellViewByType("tech" "design" "layout" "maskLayout" "w")
top = dbOpenCellViewByType("tech" "top" "layout" "maskLayout" "w")
inst = dbCreateInst(top cv "InstInTop" '(0 0) "R0")
rect0 = dbCreateRect(cv '("metal2" "drawing") '((1 8.6) (5.3 6.6)))
path = list(list(inst) rect0)
dbSetOccShapeColor(path "mask1Color")
dbSetOccShapeColorLocked(path t)
Creates a via, then sets the color of a randomly picked shape from the via master to mask2Color and locks the color.
viaDef_M2_M1 = techFindViaDefByName(tf "M2_M1")
via1t_m2_m1 = dbCreateVia(cv viaDef_M2_M1 10:10 "R0")
path = list(list(via1t_m2_m1) nth(1 via1t_m2_m1~>viaHeader~>master~>shapes))
dbSetOccShapeColor(path "mask2Color")
dbSetOccShapeColorLocked(path t)+Creates a via, then sets the color of a randomly picked shape from the via master tomask2Colorand locks the color.
Return to top