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

ccCreateRect

ccCreateRect(
d_cellview
l_lpp
l_llPoint
l_urPoint
?offset l_offset  
?rotation n_rotation
?genFigs g_genFigs
) 
=> o_surface | nil

Description

(Virtuoso Photonics Option) Creates a rectangle with the specified coordinates as a ccSurface object on the specified cellview and layer-purpose pair. The rectangle 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

A layer or a layer-purpose pair.

tx_layer |  (tx_layer tx_purpose)

l_llPoint

Lower-left point of the rectangle.

list(n_x n_y)

l_urPoint

Upper-right point of the rectangle.

list(n_x n_y)

?offset l_offset

Offset value for the rectangle transformation.

list(n_lhs n_rhs)

The default is (0,0).

?rotation n_rotation

Rotation angle for the rectangle 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

ccCreateRect(cv '("metal" "drawing") -1:-1 2:2 ?rotation 180)
> cc:0x20f7d91e
ccCreateRect(cv '("metal" "drawing") 0:0 5:10 ?genFigs nil)
> cc@0x26d92e0

Related Topics

Curvy Core Shape Creation Functions


Return to top
 ⠀
X