loading
 
Angle of Line in Line_Probe output
john starkweather from United States  [2 posts]
9 months
The output of a Line_Probe is an array PROBED_LINES.
How would one use information in the array with Calculate_Angle?
john starkweather from United States  [2 posts] 9 months
One way is to use a cscript which could either calculate the angle, or write variables that are easy to hand to Calculate_Angle:

int pts[4];
getArrayVariable("Probed_Lines", &pts, 4);

setVariable("x1",pts[0]);
setVariable("y1",pts[1]);
setVariable("x2",pts[2]);
setVariable("y2",pts[3]);
Steven Gentner from United States  [260 posts] 9 months
In most cases, you can also use an expression where you might just type in a number. For example:

[PROBED_LINES:0]
[PROBED_LINES:1]

would represent the first x and y numbers in that array. You can then type in [PROBED_LINES:0] where you would normally just type in a number in the X Start Calculate_Angle module.

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index