Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 1.19 KB

File metadata and controls

61 lines (49 loc) · 1.19 KB

SetDrawingRect

Description

Sets the size of the drawing rectangle.

PROCEDURE SetDrawingRect(
				paperWidth  : REAL;
				paperHeight : REAL);
def vs.SetDrawingRect(paperWidth, paperHeight):
    return None

Parameters

Name Type Description
paperWidth REAL The width of the drawing rectangle
paperHeight REAL The height of the drawing rectangle

Examples

BEGIN
	getPrintArea (pageWidth, pageHeight);
	sheetLayerH := CreateLayer (Concat (GetPluginString (3020),'1'), 2);	{"Sheet Layer-1"}
	Layer (GetLName (sheetLayerH));
	SetDrawingRect (pageWidth, pageHeight);
END;

	{drawing size}
	SetDrawingRect  (currDwgWidth , currDwgHeight);
END;

Layer (GetLocStr(16528, 1));
x := 3.25 * getUPI;
y := 3.25 * getUPI;
SetOriginAbsolute (-x, y);
SetDrawingRect (8", 10.33");
DoMenuTextByName (GetLocStr(11050,14), 0);	{'Fit to Page Area'}
import vs

# Sets the size of the drawing rectangle.
paperWidth = 2.0
paperHeight = 2.0

vs.SetDrawingRect(paperWidth, paperHeight)

See Also

VS Functions: GetDrawingSizeRect

Version

Availability: from VectorWorks 10.0

Category