Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

vfoUpdateModelShape

vfoUpdateModelShape( 
g_obj
d_instId
shapeId
newShapeType
newPointList
[ @rest l_args ]
) 
=> t / nil

Description

Updates the given fluid shape of the Pcell instance. The new shape type and points are specified in the newShapeType and newPointList arguments, respectively. The newPointList points are in the design coordinates. This function transforms the newPointList before updating the fluid shape. The Edit command for fluid shapes does not pass these arguments. This function updates the relevant Pcell parameters.

Arguments

g_obj

An instance of SKILL++ class vfoAbstractClass or any of its subclasses.

d_instId

The instance ID on which the operation is invoked.

shapeId

The ID of the fluid shape. This argument is useful when an instance contains multiple fluid shapes.

newShapeType

The new shape type for the fluid shape.

newPointList

The new points for the fluid shape.

l_args

List of optional arguments that can be passed to the function.

Value Returned

t

The fluid shape of the given instance is successfully updated.

nil

The fluid shape of the given instance could not be updated.

Example

vfoGetParam(inst "shapeType")
    => "polygon"
vfoUpdateModelShape(obj inst Shape1 "rect" list((2 2) (3 1)))
    => t
vfoGetParam(inst "shapeType")
    => "rect"

Return to top
 ⠀
X