version 6.0
DR GET AREA BOUNDARY (area; left; top; right; bottom)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| left | Number | Left boundary of area | |
| top | Number | Top boundary of area | |
| right | Number | Right boundary of area | |
| bottom | Number | Bottom boundary of area |
Description
The command DR GET AREA BOUNDARY returns into the left, top, right, and bottom variables, the coordinates for the rectangular viewing region of area. The coordinates are expressed in base units according to the current origin. Use the DR Base to scale function to convert from base units to scale units.
The following diagram explains the left, top, right, and bottom parameters:
Example
The following example moves the selected objects to the upper-left corner of the viewable area.
DR GET AREA BOUNDARY (Area;$Left;$Top;$Right;$Bottom) DR MOVE (Area;0;$Left;$Top;0)
See Also