IntelliCAD 11.1 Object Library | |
SetSnapSpacing Method | |
See Also |
- Xspacing
- The snap spacing along the x-axis.
- Yspacing
- The snap spacing along the y-axis.
PViewport Object : SetSnapSpacing Method |
Description
Sets the snap spacing value.
Syntax
Parameters
- Xspacing
- The snap spacing along the x-axis.
- Yspacing
- The snap spacing along the y-axis.
Example
Sub Example_SetSpacing()
' This example sets the current X- and Y-snap spacing to 0.5.
Dim viewportObj As IntelliCAD.Viewport
Set viewportObj = ThisDocument.ActiveViewport
' Turn on the grid and reset the viewport to see it come on.
viewportObj.GridOn = True
ThisDocument.ActiveViewport = viewportObj
' Set the current snap spacing
viewportObj.SetSnapSpacing 0.5, 0.5
ThisDocument.ActiveViewport = viewportObj
End Sub