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

vfoChopInstance

vfoChopInstance(
g_obj
d_instId
chopShapeData
[ @rest l_args ]
)
=> t / nil

Description

Chops the fluid shape of a given instance. The information of the chop rectangle or polygon is provided by chopShapeData which is a class object of vfoShapeData. The shape data points are in the design coordinates. This function transforms the chopShapeData before chopping the fluid shape. Note: The Chop command for fluid Pcells does not pass these arguments. This function updates the relevant Pcell parameters. If the chop operation results in multiple shapes, it may need to create multiple Pcell instances.

Arguments

g_obj

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

d_instId

The instance ID on which the operation is invoked.

chopShapeData

Instance of vfoShapeData (or any of its subclasses) class.

l_args

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

Value Returned

t

The fluid shape of the given instance has been successfully chopped.

nil

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

Example

Create a shape data object as following:

shapeData = vfoCreateShapeData("rect" '((2 2) (3 1)))
    => stdobj@0x148e90d8
obj = vfoAllocateProtocolObj(inst)
    => stdobj@0x148e90e4
vfoChopInstance(obj inst shapeData)
    => t

In the above example, the points of the chop shape are specified using the shapeData function. inst is the fluid Pcell instance to be chopped.


Return to top
 ⠀
X