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

ccMoveFig

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

Description

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

Only transient ccShapes (without OpenAccess geometry attached) can be moved. Moving a persistent (with OpenAccess geometry attached) ccShape results in error.

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@0x250fff00
arc = ccMoveFig(arc ?transform list((0:0) 0))
> cc@0x28d15dc0
; Create OpenAccess geometry
ccGenFigs(arc)
> (db:0x222ddc9a)
arc2 = ccMoveFig(arc ?transform list((0:0) 90))
> *Error* (CC-200006): Moving a persistent ccFig cc:0x28d15dc0 is not allowed.

Related Topics

Curvy Core Shape Geometry Functions


Return to top
 ⠀
X