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

gpeAddInstance

gpeAddInstance(
d_modgenID
l_instances
)
=> t / nil

Description

Adds the given list of instances to the specified Modgen.

Arguments

d_modgenID

Modgen figGroupId to which instances must be added.

l_instances

List of schematic or layout instances to be added to the Modgen.

Value Returned

t

The instances were added to the Modgen.

nil

The command was unsuccessful.

Example

The following procedure first identifies a figGroup in the cellview cv, and then assigns it to the specified Modgen modgenid. Instances in the cellview are identified and assigned to inst1 and inst2. These two instances are then added to modgenid.

cv=geGetEditCellView()
modgenid=leGetEditFigGroup()
inst1=dbFindAnyInstByName(cv "M1")
inst2=dbFindAnyInstByName(cv "M2")
gpeAddInstance(modgenid list(inst1 inst2))

Return to top
 ⠀
X