Arbortext IsoDraw > Macro Language Reference > Object Data Types > Document Object > document.grid
  
document.grid
This property gives access to all grid attributes but it can not be used directly. It is assumed that myDoc has already been defined as a document and set as the activeDoc for the following examples.
document.grid.gridSize
Returns and sets the grid size property as float.
myDoc.grid.gridSize = 20
document.grid.radius
Returns and sets the magnetic radius property as float.
myDoc.grid.radius = 5
document.grid.elementMagnet
Returns and sets the magnetic elements property as boolean.
myDoc.grid.elementMagnet = true
document.grid.gridMagnet
Returns and sets the magnetic grid points property as boolean.
myDoc.grid.gridMagnet = true
document.grid.showGrid
Returns and sets the show grid property as boolean.
myDoc.grid.showGrid = true
document.grid.showDim
Returns and sets the show dimensions property as boolean.
myDoc.grid.showDim = true
document.grid.constrain
Returns and sets the align to grid property as boolean.
myDoc.grid.constrain = true
document.grid.gridInFront
Returns and sets the grid in front property as boolean.
myDoc.grid.gridInFront = true
document.grid.noFShortInIso
Returns and sets the no isometric foreshortening property as boolean.
myDoc.grid.noFShortInIso = true
document.grid.gridColor
Returns and sets the color property as RGBColor.
myDoc.grid.gridColor.red = 50
myDoc.grid.gridColor.green = 150
myDoc.grid.gridColor.blue = 50
document.grid.firstSelColor
Returns and sets the first color property as RGBColor.
myDoc.grid.firstSelColor.red = 10
myDoc.grid.firstSelColor.green = 160
myDoc.grid.firstSelColor.blue = 140
document.grid.secondSelColor
Returns and sets the second color property as RGBColor.
myDoc.grid.secondSelColor.red = 75
myDoc.grid.secondSelColor.green = 30
myDoc.grid.secondSelColor.blue = 85