dbColorShapeQuery2
dbColorShapeQuery2(d_cellViewId l_layerPurposePair l_bBox[x_startLevel] [x_stopLevel] [n_filterSize] [l_transform] ) =>l_occShapesWithColorAndState/ nil
Description
Returns a list of shapes and occurrence shapes within a given region, and the coloring information for each shape. The coloring information includes the color, whether the color is locked, and whether the coloring is due to the color attribute or hierarchical color locking on the shape.
Arguments
Value Returned
Example
Returns the list of Metal1:drawing shapes in the selected Pcell along with the information for each shape about its color, locked state, and whether the color is due to color attribute or hierarchical color locking (HCL). In the figure below, three shapes are reported. The first shape is not colored, the second is locked on mask1Color but not due to HCL, and the third is locked on mask2Color due to HCL.

dbColorShapeQuery2(cv list("Metal1" "drawing") css()~>bBox)
((((db:0x2edfd01a) db:0x56190228) "grayColor" nil nil)
(((db:0x2edfd01a) db:0x5619022f) "mask1Color" t nil)
(((db:0x2edfd01a) db:0x56190236) "mask2Color" t t)
)
Converts the hierarchical path output from dbColorShapeQuery2 using the asNested function to the format accepted by dbGetInstTransform.
(defun asNested (l)
(if (cdr l) then
(list (car l) (asNested (cdr l)))
else
l
) ; if
) ; defun
occShapes = dbColorShapeQuery2( geGetEditCellView()
list( "M1" )
geGetEditCellView()~>bBox )
foreach(occShape occShapes
hierPathTransform = dbGetInstTransform( asNested( caar( occShape ) ) )
printf(" -- %L -- transform : %L \n" car(occShape) hierPathTransform )
); foreach
The following is sample output for this example:
-- ((db:0x18c5e31a db:0x18c5de1a) db:0x18c5df9c) -- transform : ((1.9 2.0) "R0" 1.0)
-- ((db:0x18c5d39a) db:0x18c5df9c) -- transform : ((1.9 2.04) "R0" 1.0)
Prints information for the M1 occurrence shapes in the current edit cellview and the concatenated transform for each shape. The asNested function converts the dbColorShapeQuery2 output to the input format required by dbGetInstTransform.
Return to top