Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

ccCreateEllipse

ccCreateEllipse(
d_cellViewId
l_lpp
l_llPoint
l_urPoint
?offset l_offset 
?rotation n_rotation
?genFigs g_genFigs
)
=> o_surface / nil

Description

(Virtuoso Photonics Option) Creates an ellipse with the specified coordinates as a ccSurface object in the cellview with specified layer-purpose pair. The ellipse is then transformed according to the specified offset and rotation. Optionally, OpenAccess figures (polygons) are created.

Arguments

d_cellViewId

Database ID of a cellview.

l_lpp

tx_layer | (tx_layer tx_purpose)

A layer or a layer-purpose pair.  

l_llPoint

list(n_x n_y)

Lower-left point of the rectangle enclosing the ellipse.  

l_urPoint

list(n_x n_y)

Upper-right point of the rectangle enclosing the ellipse.  

?offset l_offset

list(n_lhs n_rhs)

Offset value for the rectangle transformation.

The default is (0,0).

?rotation n_rotation  

Rotation angle for the ellipse transformation.

The default is (0,0).

?genFigs g_genFigs

Specifies whether OpenAccess figures are generated for the resulting ccSurface.

The default is t, which means that the figures are generated.

Value Returned

o_surface

ID of the resulting ccSurface.

nil

An error occurred.

Example

cv = geGetEditCellView()
; the red ellipses
ccCreateEllipse( cv list("y1" "drawing") 0:0 10:15 ?offset 10:10)
ccCreateEllipse( cv list("y1" "drawing") 0:0 10:15 )
; the green ellipses (circles)
ccCreateEllipse( cv list("y2" "drawing") -5:0 10:15 )
ccCreateEllipse( cv list("y2" "drawing") -5:0 10:15 ?offset 0:20)
; the light blue ellipses    
ccCreateEllipse( cv list("y4" "drawing") -5:0 5:15 ?offset 20:0)
ccCreateEllipse( cv list("y4" "drawing") -5:0 5:15 ?offset 20:20 ?rotation -45)

Related Topics

Curvy Core Shape Creation Functions


Return to top
 ⠀
X