Product Documentation
Virtuoso Layout Suite XL: Basic Editing User Guide
Product Version IC23.1, November 2023

snapToGrid

layout snapToGrid boolean { t | nil }
graphic snapToGrid boolean { t | nil }

Description

Snaps the top-level and soft block pins to a grid. It also snaps the place and route (PR) boundary of the top-level and soft block instances to a grid. The snapping of pins and PR boundary is dependent on the block type, and the snapping works when the display level is greater than zero.

If the block is an analog block, the PR boundary and pin edges are snapped to the manufacturing grid. For a digital block, the PR boundary is snapped to the placement grid and the pin centers are snapped to the routing grid. The snapping is supported for both virtual and non-virtual pins. Pins with placement status unplaced, fixed, locked, or unknown are not snapped even if they are touching the boundary.

The default value is nil.

GUI Equivalent

Command:

Edit – Chop

Edit – Copy

Edit – Move

Edit – Stretch

Edit – Advanced – Reshape

Field:

Snap – Pins and boundary to grid

Examples

envGetVal("layout" "snapToGrid")
envSetVal("layout" "snapToGrid" 'boolean t)
envGetVal("graphic" "snapToGrid")
envSetVal("graphic" "snapToGrid" 'boolean t)

Related Topics

Chop Form

Copy Form

Move Form

Stretch Form

Reshape Form


Return to top
 ⠀
X