dbSetOccShapeColor
dbSetOccShapeColor(l_occShape t_color) =>t/ nil
Description
Assigns the specified color to the given occurrence shape. You can set the color for occurrence shapes with types Path, PathSeg, Polygon, and Rect.
Arguments
Value Returned
Example
Creates a one-level occurrence shape rect0, then sets its color to mask2Color.
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 "mask2Color")
Creates a via, then sets the color of a randomly picked shape from the via master to mask1Color.
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 "mask1Color")
Sets the color of the instance of rect1 inside the mosaic to mask2Color.
rect1 = dbCreateRect(cv '("metal2" "drawing") '((0 7.6) (4.3 5.6)))
mosaic = dbCreateSimpleMosaic(top cv "MosaicInTop" list(0 0) "R0" 2 2 2 2)
path = list(list(list(mosaic 1 1)) rect1)
dbSetOccShapeColor(path "mask2Color")
dbGetShapeEffectiveColor(path)
Sets the color of the rect shapes in the instances given by inst1 and inst2 to mask1Color.
dbSetOccShapeColor((list(list(inst1 inst2) rect) "mask1Color")
Return to top