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

ccCopyFig

ccCopyFig(
o_shape
[ ?cv d_cellViewID ]
[ ?lpp g_lpp ]         
[ ?transform l_transform ]   
) 
=> o_shape2 / nil

Description

(Virtuoso Photonics Option) Copies the specified ccShape object to the specified cellview and layer-purpose pair (LPP) by using the specified transform. The copied cellview and LPP default to the ones of the source ccShape.

The ccShape object copy is transient (without any OpenAccess geometry attached) even when the source oaShape is persistent (with OpenAccess geometry attached).

Arguments

o_shape

ID of a ccShape object.

?cv d_cellViewId

ID of a cellview.

?lpp g_lpp

A layer or a layer-purpose pair in the specified cellview in the following format:

tx_layer | (tx_layer tx_purpose)  

?transform l_transform

  

A transformation object in the following format:

((n_offsetX n_offsetY) n_angle)

where:

  • n_angle is the rotation angle.
  • n_offsetX and n_offsetY determine the offsets of the X-axis and Y-axis in this format (0,0).

Value Returned

o_shape2

ID of the destination ccShape.

nil

An error occurred.

Example

arc = ccCreateLine(cv "metal"
                            ccCreatePolyCurve(list(list(ccCreateCurve("cos(t)" "sin(t)"
                                                                      0:3.14159265)))))
> cc@0x271bf960
;Create OpenAccess geometry
ccGenFigs(arc)
> (db:0x225edc9a)
arc~>figs
> (db:0x225edc9a)
 
arc2 = ccCopyFig(arc ?transform list((0:0) 90))
> cc@0x290dba90
;Check whether the OpenAccess geometry of the copied figure is empty
arc2~>figs
> nil
arc2~>beginPt
> (0.0 1.0)
arc2~>endPt
> (0.0 -1.0) 

Related Topics

Curvy Core Shape Geometry Functions


Return to top
 ⠀
X