I am a relatively new user of SKILL. My problem is with the use of dBTransformBBox function. I am able to apply this function to scale the size of objects which are uniquely represented in bounding box fashion("rect" objects). My question is if this function is applicable to polygons as well.
Specifically when I apply dBTransformBBox to a shape in the active layer there is no scaling. As far as I can tell these shapes differ only in that they are represented as "polygon" objects in terms of their geometry. dBTransformCellView scales all layers in a cell view, so it should be possible to scale polygons as well. I tried to use the dbLayerSize function to achieve scaling on the active layer but I do not understand the results returned by it.cvID~>DBUPerUU returns 1000.0.I am attaching a couple of pictures that show the layout before and after the application of dbLayerSize and also some example code of what I used to achieve this.
cv_lay = dbOpenCellViewByType("SEMIREG_STM040" "SR_FA" "layout" "" "a")
shape_list = cv_lay~>shapes
OD_shape_list = nil foreach(shape shape_list if(shape~>lpp == list("OD" "drawing") then OD_shape_list = append1(OD_shape_list shape) );if );for
dbLayerSize(cv_lay "OD" list(OD1) 0.50)
dbLayerSize(cv_lay "OD" list(OD1) -0.50) [returns nil]
leLayerSize(cv_lay list("OD" "drawing") -0.50 list("OD" "drawing")) [also returns nil]
leLayerSize(cv_lay list("OD" "drawing") -0.50 list("OD" "drawing"))
I looked at other posts referring to leLayerSize (which I see in the manual is a layout editor procedural version of the dbLayerSize function), but the problem of the sizing value is still present here. There is no hierarchy in my layout.
I also tried leSizeShape for the specific shape I extract above.
SYNTAX ERROR found at line 5363 column 16 of file *ciwInPort*
*Error* lineread/read: syntax error encountered in input
Any help will be appreciated.
original cell view
cellview after applying dbLayerSize with 0.5 sizing
cellview after applying leLayerSize with 0.5 sizing
kasyab said:Could you tell me where to look for detailed documentation on sizing? More to the point I think a lot of my doubts would be cleared up if I can understand the user units and how it is related to the database.
In cdnshelp, search for "Sizing Objects" - you'll find some documentation related to the interactive size command which shows what it does with a picture. Essentially, if you size by 1, it will grow the shape so that each edge moves outwards by 1 unit (typically 1um).
You can check these units for a cellView, by doing:
The defaults are set in the technology file - search for viewTypeUnits in cdnshelp.