Returns the top left and bottom right coordinates of a rectangle surrounding the entire area of the document containing objects.
Similar to GetDrawingSizeRect but can work on specified layer.
PROCEDURE GetDrawingSizeRectN(
hLayer : HANDLE;
VAR p1 : REAL;
VAR p2 : REAL);def vs.GetDrawingSizeRectN(hLayer):
return (p1, p2)| Name | Type | Description |
|---|---|---|
| hLayer | HANDLE | The layer to be used for calculating the drawing rectangle. |
| p1 | REAL | Returns top left coordinate of drawing rectangle. |
| p2 | REAL | Returns bottom right coordinate of drawing rectangle. |
BEGIN
GetDrawingSizeRectN (gContainerHandle,dwgLeft, dwgTop, dwgRight, dwgBottom);
vertDim := (dwgTop - dwgBottom) / currentScale;
horizDim := (dwgRight - dwgLeft) / currentScale;import vs
# Returns the top left and bottom right coordinates of a rectangle
# surrounding the entire area of the document containing objects.
hLayer = vs.ActLayer() # handle to the active design layer
p1, p2 = vs.GetDrawingSizeRectN(hLayer)
vs.Message('GetDrawingSizeRectN returned: ' + str((p1, p2)))VS Functions: GetDrawingSizeRect
Availability: from Vectorworks 2014