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