Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 868 Bytes

File metadata and controls

43 lines (34 loc) · 868 Bytes

TBB_GetPageArea

Description

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)

Parameters

Name Type Description
LayerHand HANDLE
PageWidth REAL
PageHeight REAL

Examples

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)))

Version

Availability: from Vectorworks 2019.1

Category