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.
- Boundary: The global grid offset is relative to the lower (left) edge of the cellview boundary for global grids with vertical (horizontal) direction. The cellview boundary is determined by a Snap Boundary, or, if no Snap Boundary exists, by a PRBoundary. If the cellview boundary is moved, the global grid will move accordingly.
- Origin: The global grid offset is relative to the x axis (y axis) of the cellview for global grids with vertical (horizontal) direction. If the cellview boundary is moved, the global grid will remain unchanged.
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
|
ID of the cellview used to store the global grid offset reference type. |
|
|
The value of the global grid offset reference type. Valid values: |
Value Returned
|
The global grid offset reference type is set on the specified cellview. |
|
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