How can I use the leModifyCorner to a rectangle (or polygon) created by a ROD object? If only a databse object can be modifed by leModifyCorner; is it possible to first create a polygon object, modify the corner, and somehow convert it to a ROD object? I need ROD objects for aligning.
I tried this sample code:
pcDefinePCell(list( ddGetObj( "my_library") "my_cell_view" "layout")
(( w 1.44) ( l 2.14) (polyoffx 0.94)(polyoffy 0.2)(poly_length 1)(poly_width 1)
(polyLayer "POLY") (activeLayer "ACTIVE") );end of default values
;Define contents of the pcell
poly= rodCreatePolygon(?layer list(polyLayer "drawing")
?pts list( 0:0 poly_length:0 poly_length:poly_width 0:poly_width ))leModifyCorner( poly list(t t t t) t 0.1 4) ; compains poly is not a database object
active = rodCreateRect(?layer list(activeLayer "drawing")?pts list( 0:0 l:0 l:w 0:w ))
leModifyCorner( active list(t t t t) t 0.1 4) ; compains active is not a database object
rodAlign(?alignObj active?alignHandle "lowerLeft"?refObj poly?refHandle "lowerLeft"?xSep polyoffx?ySep polyoffy)
Many thanks in advance. Kindly provide a small code (or modify the existing) to make it work; I am still a newbie..
Do you have have a SKILL function to chamfer the corners of a rectangle in a pcell?