IntelliCAD 11.1 Object Library
SetSnapSpacing Method
See Also 
Xspacing
Snap spacing along the x-axis.
Yspacing
Snap spacing along the y-axis.
Viewport Object : SetSnapSpacing Method

Description

Sets or returns the snap spacing value for the viewport.

Syntax

Visual Basic
Public Sub SetSnapSpacing( _
   ByVal Xspacing As Double, _
   ByVal Yspacing As Double _
) 

Parameters

Xspacing
Snap spacing along the x-axis.
Yspacing
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

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.