version 6.0
DR GET RULER OPTIONS (area; rulerLines; notation; grid)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| rulerLines | Integer | 0 = Normal, 1 = Through objects | |
| notation | Integer | 0 = Decimal, 1 = English | |
| grid | Real | Grid amount in scale units |
Description
The command DR GET RULER OPTIONS returns into the rulerLines, notation, and grid variables various information about the rulers in area.
rulerLines describes the treatment of ruler lines in area.
If rulerLines equals 0, objects filled with a pattern other than none obscure the ruler lines.
If rulerLines equals 1, the user can see the ruler lines through objects, regardless of the fill pattern.
If rulerLines equals -1, no change is made to the notation.
notation describes the way values are displayed in the Coordinates panel.
If notation equals 0, the coordinates are displayed in decimal notation.
If notation equals 1, the coordinates are displayed in English notation (Fractions and Feet' Inches") when the base unit is inches.
If notation equals -1, no change is made to the notation.
grid describes the spacing of the grid in area, expressed in scale units. Use the DR Scale to base function to convert from scale units to base units.
Example
The following example divides the grid size in half, increasing the precision with which objects can be placed.
DR GET RULER OPTIONS (Area;$Lines;$Notation;$Grid) DR SET RULER OPTIONS (Area;-1;-1;$Grid / 2)
See Also