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

vfoRotateInstance

vfoRotateInstance(
g_obj
d_inst1
x_angle_in_degrees
[ @rest l_args ]
) 
=> t / nil

Description

Applies the rotation angle on the FGR instance. This function applies to Pcells.

Arguments

g_obj

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

d_inst1

The database ID of the FGR instances to be rotated.

x_angle_in_degrees

Any angle in degrees as double.

l_args

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

Value Returned

t

The rotation angle is applied on the instance successfully.

nil

The instance is not rotated.

Example

Before calling the vfoRotateInstance function, you should call the vfoSupportsRotation function on that instance and check its return value. If the return value is nil, any angle rotation is not supported on the instance. If return value is t, any angle rotation is supported on the instance. For the supported instances, you can call the vfoRotateInstance function to apply any angle rotation.

protocolObj = vfoAllocateProtoclObj(instId)
retVal = vfoSupportsRotation(protocolObj instId)
when(retVal  
       vfoRotateInstance ( protocolObj instId angle))

Return to top
 ⠀
X