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

apSnapInsts

apSnapInsts(
?cellView d_cellviewID
?snapObjSet l_snapObj
?snapToDirX { low | center | high }
?snapToDirY { low | center | high }
[ ?disableRowSnap g_disableRowSnap ]
[ ?disableSPSnap g_disableSPSNap ]
[ ?enableWSPSnap g_enableWSPSnap ]
)
=> t / nil

Description

(Virtuoso Layout Suite EXL) Snaps the specified instances to rows and snap grids.

Arguments

?cellView d_cellviewID

Database ID of the cellView that contains the instances to be snapped. The defaults is the current cellview.

?snapObjSet l_snapObj

A list of instances to snap. If the set is not specified, all instances in the design are subject to snap.

?snapToDirX { low | center | high }

Snap location for the X direction. Valid values are: low, center, and high. The default value is center, which is the closet to the grid.

?snapToDirY { low | center | high }

Snap location for the Y direction. Valid values are: low, center, and high. The default value is center, which is the closet to the grid.

?disableRowSnap g_disableRowSnap

Disable snapping to rows. The default value is nil.

?disableSPSnap g_disableSPSNap

Disable snapping to snap grids. The default value is nil.

?enableWSPSnap g_enableWSPSnap

Enable snapping to WSP grid. The default value is nil.

Value Returned

t

Instances were snapped to the specified rows and snap grids.

nil

The command was unsuccessful.

Examples

Snaps the selected instances in the current cellview to the specified grids in the X and Y directions.

apSnapInsts(
    ?cellView geGetEditCellView()
    ?snapObjSet geGetSelSet()
    ?snapToDirX "low"
    ?snapToDirY "center"
)

Related Topics

Auto P&R Assistant User Interface for Device-Level Placement


Return to top
 ⠀
X