Search:     Advanced search

function ScaleY

Article ID: 302
Last updated: 24 Sep, 2010
Views: 814
Posted: 11 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

 

Description:

Returns ScaleY of the current page.

Notes:

This Example will show a message box with the length of the line scaled and unscaled. Copy and paste code into a New PlanSwift Script.

Pascal Example:

X1  :=  0;
Y1  :=  0;
X2  :=  0;
Y2: :=  0;
GetLine(X1,Y1,X2,Y2, 'Draw Line');
noScale := (X2 - x1) + (Y2 - Y1);
HasScale := (X2 - X1)/ScaleX +(Y2 - Y1)/ScaleY;
ShowMessage('No Scale Applied: ' + FormatFloat('0.00',noScale)+ ' Scale Applied: ' + FormatFloat('0.00',hasScale));

Visual Basic Example:

X1  =  0
Y1  =  0
X2  =  0
Y2: =  0
GetLine(X1,Y1,X2,Y2, "Draw Line")
noScale = (X2 - x1) + (Y2 - Y1)
HasScale = (X2 - X1)/ScaleX +(Y2 - Y1)/ScaleY
ShowMessage("No Scale Applied: " + FormatFloat("0.00",noScale)+ " Scale Applied: " + FormatFloat("0.00",hasScale))


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
function ScaleX     function MouseX