Example 03 - Manipulate the results from two LineFinders
#-------------------------------------------------------------
#script
from an application
#establishing
a set of results based on results from
#two lines
in a LineFinder tool
#------------------------------------------------------------
from math
import sqrt,pow;
NumberLiner
= GetValue('Check top filter.Number lines');
x1 =
GetValue('Check top filter.Line[1].p.x');
y1 =
GetValue('Check top filter.Line[1].p.y');
x2 =
GetValue('Check top filter.Line[2].p.x');
y2 =
GetValue('Check top filter.Line[2].p.y');
angle =
GetValue('Check top filter.Angle[2]');
Width=
sqrt(pow((x1-x2),2)+pow((y1-y2),2))