Product Documentation
Virtuoso Schematic Editor SKILL Functions Reference
Product Version IC23.1, November 2023

schFlatten

schFlatten( 
d_inst
[ ?at g_at ]
)
=> l_list / nil

Description

Flattens the contents of the schematic cellview under the passed instance into the cellview of the instance. To control which underlying schematic is picked, configure viewList first.

Arguments

d_inst

The ID of the instance which has the schematic cellview to be flattened.

?at g_at

The location where the flattened content is placed.

Value Returned

l_list

A disembodied property list that contains the names of the instances and all the renames that have been performed.

nil

The contents of the schematic cellview could not be flattened.

Examples

Finds an instance in the schematic and flattens it, auto-placing the contents.

inst = dbFindAnyInstByName(cv "I0")
schFlatten(inst)

Determines where to place the flattened content. The bottom left corner of the content is placed at the specified coordinate.

inst = dbFindAnyInstByName(cv "I1")
schFlatten(inst ?at 0:3)

Flattens schematic2 if it exists. If it does not exist, it tries to flatten schematic next, and so on.

schSetEnv("viewList" "schematic2 schematic symbol")
inst = dbFindAnyInstByName(cv "I2")
schFlatten(inst ?at 0:3)

Return to top
 ⠀
X