Sets the size of the drawing rectangle.
PROCEDURE SetDrawingRect(
paperWidth : REAL;
paperHeight : REAL);def vs.SetDrawingRect(paperWidth, paperHeight):
return None| Name | Type | Description |
|---|---|---|
| paperWidth | REAL | The width of the drawing rectangle |
| paperHeight | REAL | The height of the drawing rectangle |
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)VS Functions: GetDrawingSizeRect
Availability: from VectorWorks 10.0