Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbSetGlobalGridOffsetReferenceType

dbSetGlobalGridOffsetReferenceType (
d_dbCellViewId
t_referenceType
)
=> t / nil

Description

(ICADVM20.1 Only) Sets the global grid offset reference type on a cellview for the snapPatternDef and widthSpacingSnapPatternDef global grids. The global grid offset reference type can be boundary or origin.

The initial value for the cellview is determined by the napPatternGlobalGridAnchoring environment variable. By default, snapPatternGlobalGridAnchoring is set to t, which corresponds to boundary.

Arguments

d_dbCellViewId

ID of the cellview used to store the global grid offset reference type.

t_referenceType

The value of the global grid offset reference type. Valid values: boundary or origin.

Value Returned

t

The  global grid offset reference type is set on the specified cellview.

nil

Returned in case of failure.

Example

Opens a cellview by using the dbOpenCellViewByType SKILL command that returns the cellview ID cv.

cv = dbOpenCellViewByType("design" "top" "layout")

Passes cv and origin to lock the global grid offset reference at the origin.

dbSetGlobalGridOffsetReferenceType(cv "origin")


Return to top
 ⠀
X