• progeCAD in French Language
  • progeCAD in Spanish Language
  • progeCAD in English Language
Home > Support > Vba API > Visual Basic Reference > Reference Guide > Methods > SetGridSpacing Method 

SetGridSpacing Method

SetGridSpacing Method

SetGridSpacing method

Sets or returns the grid spacing value for the viewport.

Syntax

object.SetGridSpacing(Xspacing, Yspacing)

Where:

     object is an progeCAD Viewport or PViewport object;

     Xspacing and Yspacing are double-precision variables (or values) representing the spacing of grids along the x and y axes.

SetGridSpacing method example

 
DWG is the native file format for Autodesk AutoCAD®. Autodesk and AutoCAD are registered trademarks or trademarks of Autodesk, Inc. in the USA and/or other countries. progeSOFT and progeCAD are registered trademarks or trademarks of progeCAD s.r.l. in the USA and/or other countries.