version 6.0
DR SET ORIGIN (area; horizontal; vertical; mode)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| horizontal | Real | Horizontal position | |
| vertical | Real | Vertical position | |
| mode | Integer | 0 = Absolute, 1 = Relative |
Description
The command DR SET ORIGIN sets the origin for area according to the horizontal, vertical, and mode parameters.
horizontal and vertical are specified in base units. Use DR Scale to base to convert from scale units to base units. You can specify horizontal and vertical as offsets from the current origin (relative) or as offsets from the upper left corner of the printable surface of the document (absolute).
If mode equals 0, horizontal and vertical are absolute coordinates.
If mode equals 1, horizontal and vertical are relative coordinates.
Positive values indicate a direction down or right. Negative values indicate a direction up or left. The default position for the origin is the upper left corner of the printable surface of the document. Many other 4D Draw commands rely on the position of the origin.
Example
This example resets the origin to the upper left corner of the area.
DR SET ORIGIN (Area;0;0;0)
See Also