Difference between revisions of "VS:GetDrawingArea"
From Vectorworks Developer
m (1 revision)
Revision as of 13:50, 7 December 2020
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionGets the drawing area of the active layer, as in Page Setup dialog. If Other is selected returns an empty string as outDrawingArea and true for outIsOther.If One Printer Page is Selected, returns empty string for outDrawingArea and true for outIsOnePrinterPage. Otherwise, returns the drawing area name (ISO A3, US ARCH A, etc.)
VAR outDrawingArea :STRING;
VAR outIsOther :BOOLEAN;
VAR outIsOnePrintedPage :BOOLEAN);
def vs.GetDrawingArea(): return (STRING, outDrawingArea, outIsOther, outIsOnePrintedPage)
outDrawingArea STRING Returns the paper size name of the active layer, if it is found in the predefined paper sizes from DwgSizes-Universal.txt. outIsOther BOOLEAN Returns true, if the paper size of the active layer is not one of the predefined sizes from DwgSizes-Universal.txt. outIsOnePrintedPage BOOLEAN Returns true, if One Printer Page was selected in Page Setup dialog and the page area is the same as the selected from the printer page area.
VersionGetDrawingArea is obsolete as of VectorWorks0.0
Availability: from Vectorworks 2019