SHEET
A drawing sheet: a border drawing from the part library placed on the page, its fields showing this drawing, and in each of its viewports a page of this drawing, fitted or at a scale and cut to the viewport. See Drawing sheets and borders.
Syntax
SHEET origin,"border"
SHEET @id,origin,"border",layer,SETTING=value,…
| Argument | Meaning |
|---|---|
| origin | The point the border's origin (its bottom left corner, for the borders that come with the app) goes on. |
| "border" | The border: a part of the drawing's library (PARTDEF), kept in the drawing or linked to its file. |
| layer | The layer for the border's lines on layers the drawing hasn't (a border's layer is drawn on the drawing's layer of the same name). |
The id, layer and anything after the settings are the element settings.
Settings
Each is any expression of the drawing, worked out as it changes.
| Setting | Meaning |
|---|---|
VIEW="Page 1" |
The page (or library part) the first viewport shows. A list, {"Page 1","Page 2"}, gives each viewport's in order; a dictionary, {"Detail":"Page 2"}, by viewport name. A viewport not given one shows the page its VIEWPORT names; the first, if that names none, the drawing's first page that is drawn on and isn't a sheet. |
SCALE="1:2" |
The scale: a ratio ("1:2", "5:1") or a number (paper size over real size, 0.5); "FIT" (the default) to fill the viewport less a margin of a twentieth of its smaller side; "AUTO" for the largest standard scale that fits. One value is every viewport's; a list or dictionary gives each its own. |
ALIGN="TL" |
Where the page sits in the viewport, within the margin: "C" (centred, the default), "TL", "T", "TR", "L", "R", "BL", "B" or "BR". As SCALE. |
NAME=value |
A value for one of the border's inputs (its labelled variables): SIZE="A3", COMPANY="Example Co", ZONES=FALSE. A choice is given by its name. |
The standard scales are 50:1, 20:1, 10:1, 5:1, 2:1, 1:1, 1:2, 1:5, 1:10, 1:20, 1:50, 1:100, 1:200, 1:500 and 1:1000 for a millimetre drawing (ISO 5455), and 10:1, 8:1, 4:1, 2:1, 1:1, 1:2, 1:4, 1:8, 1:10, 1:16, 1:20, 1:32, 1:50, 1:64 and 1:100 for an inch drawing.
Examples
PARTDEF "Frame","P10=[200,0]\nP11=[200,150]\nP12=[0,150]\nPOLYLINE @1,[P0,P10,P11,P12],TRUE,0\nP13=[10,25]\nP14=[190,140]\nVIEWPORT @2,P13,P14,0\nP15=[10,10]\nTEXT @3,P15,CONCAT(DRAWINGTITLE(),\" \",SHEETSCALE()),5,0,0"
PAGE "Sheet 1"
SHEET P0,"Frame",0,VIEW="Page 1",SCALE="AUTO"
PAGE "Sheet 2"
SHEET P0,"Frame",0,VIEW="Page 1",SCALE="1:2",ALIGN="TL"

A small border (a 200 × 150 frame, a viewport and a text showing the drawing's title and the scale) on two sheets: the first page at the largest standard scale that fits, and at 1:2 in the top left corner.
Notes
You will rarely type this: make sheets with Edit › Page › New Sheet…, and this is how they are written in the drawing file.
What a viewport shows is the page as it is now: edit the page, or change the drawing's variables, and the sheet follows. The page is drawn with its own layers and line widths (widths stay as they are on paper, whatever the scale); text and dimensions on it are scaled with it. 3D pages can't be shown.
A border drawn in millimetres placed on an inch drawing (or the other way round) is scaled to the drawing's units. Exported, a page with a sheet on it is the sheet's size. Renaming a page renames it in a sheet's VIEW written as text.
See also: VIEWPORT, PARTDEF, Sheet fields, Drawing sheets and borders.