Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.36 KB

GetDrawingSizeRectN.md

File metadata and controls

53 lines (43 loc) · 1.36 KB

GetDrawingSizeRectN

Description

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)

Parameters

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.

Examples

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)))

See Also

VS Functions: GetDrawingSizeRect

Version

Availability: from Vectorworks 2014

Category