Represents a single sheet of a model drawing.
An object of this class mimics a physical sheet of paper, hence the size and orientation settings.
Normally a drawing sheet would have associated metadata, such as default scale, title block, etc. This information is represented with View objects.
new Sheet():
Sheet
Creates a sheet.
The sheet is initialized with A3 paper size and landscape orientation.
Sheet
readonlyviews:Set<View>
Views placed on the sheet.
get height():
number
Height of the sheet.
For standard sheet sizes, width and height depend on the orientation. Changing the orientation swaps width and height.
number
get id():
bigint
Returns the unique identifier of the object.
bigint
get numberOfViews():
number
Returns the number of views in the sheet.
Use Sheet.views and views.size instead.
number
get orientation():
OrientationType
Orientation of the sheet.
get paperSize():
PaperSizeType
Standard paper size of the sheet, if one is defined.
get uuid():
`${string}-${string}-${string}-${string}-${string}`|null
UUID of the drawing sheet.
The value is null if the drawing sheet has no assigned UUID.
`${string}-${string}-${string}-${string}-${string}` | null
set uuid(
uuid):void
Sets the UUID of the drawing sheet.
`${string}-${string}-${string}-${string}-${string}` | null
UUID of the drawing sheet.
void
get width():
number
Width of the sheet.
For standard sheet sizes, width and height depend on the orientation. Changing the orientation swaps width and height.
number
addView(
view):void
Adds a view to the sheet.
View to add.
void
Use Sheet.views and views.add(view) instead.
setCustomSheetSize(
width,height):void
Sets the custom sheet size with specified dimensions.
The sheet is marked as user-defined and its orientation is set to landscape.
number
Width of the sheet.
number
Height of the sheet.
void
setStandardSheetSize(
paperSize,orientation):void
Sets the sheet size to one of the standard sizes.
Paper size of the sheet.
Orientation of the sheet.
void