Gets the page area of the selected layer in inches
PROCEDURE TBB_GetPageArea(
LayerHand : HANDLE;
VAR PageWidth : REAL;
VAR PageHeight : REAL);def vs.TBB_GetPageArea(LayerHand):
return (PageWidth, PageHeight)| Name | Type | Description |
|---|---|---|
| LayerHand | HANDLE | |
| PageWidth | REAL | |
| PageHeight | REAL |
TBB_GetPageArea(ActLayer, paperHorizDim, paperVertDim);import vs
# Gets the page area of the selected layer in inches.
LayerHand = vs.ActLayer() # handle to the active design layer
PageWidth, PageHeight = vs.TBB_GetPageArea(LayerHand)
vs.Message('TBB_GetPageArea returned: ' + str((PageWidth, PageHeight)))Availability: from Vectorworks 2019.1