Below is a snipet of code I've used in IC5 to raise certain layers that fall within a specific bBox to my top level.I'm finding now that in IC6 (OA) mosaics are apparently handled differently. Can anyone share some help on raising shapes (including mosaics) to the top cell in IC6.
xFormData = foreach( mapcar shapeSpec removeDups(dbProduceOverlap(cv searchArea depth lpp))
foreach( mapcar spec flattenList(shapeSpec)
;printf("\n spec objType is %L \n" spec~>objType)
cond(
( spec~>objType == "inst"
; x y rot rows columns dX dY
list( xCoord(spec~>xy) yCoord(spec~>xy) cadr(spec~>transform) 1 1 0 0 )
)
( spec~>objType == "stdVia"
; x y rot rows columns dX dY
list( xCoord(spec~>origin) yCoord(spec~>origin) spec~>orient 1 1 0 0 )
)
( spec~>objType == "mosaic"
m=spec
; x y rot rows columns dX dY
list( xCoord(m~>xy) yCoord(m~>xy) car(m~>tileArray) m~>rows m~>columns m~>uX m~>uY )
)
( t ; a shape - last element
spec
)
);end cond
);end foreach
);end foreach