AreaCorrectionInv Function

Returns corrected points to their original condition

Syntax
AreaCorrectionInv(Point, AreaNum)

Parameters

Point
Specify the point data to be corrected.
AreaNum
Specify the area number (integer from 1 to 8) as an expression or numerical value.

Description
For points that have been corrected with the AreaCorrection function, returns the point data that existed before correction.

By applying AreaCorrectionInv to a point that was actually created by teaching or to a point that has been corrected, you can obtain the point data that existed before correction.

Specifying a correction area that has not been set will result in an error.

See Also
AreaCorrectionSet, AreaCorrectionClr, AreaCorrectionDef Function, AreaCorrectionOffset Function

AreaCorrectionInv Function Example

Function AreaCorrectionTest
    '  P(1:4) Reference point
    P1 = XY(-100, 200, -20, 0)
    P2 = XY(100, 200, -20, 0)
    P3 = XY(-100, 400, -20, 0)
    P4 = XY(100, 400, -20, 0)
    '  P(11:14) Actually use the point where P(1:4) was taught
    P11 = XY(-100, 200.5, -20, 0)
    P12 = XY(100.3, 200.1, -20, 0)
    P13 = XY(-100.4, 400.8, -20, 0)
    P14 = XY(100.2, 400.4, -20, 0)
    '  Set correction area
    AreaCorrectionSet 1, P(1:4), P(11:14), MODE_PLANE
    P888 = AreaCorrection(P1, 1) ' P888 is a corrected point
    P999 = AreaCorrectionInv(P888, 1) ' P999 is the point prior to conversion
    Print Dist(P11, P888)
    Print Dist(P1, P999)
Fend

[Output]

0
0