All,
A lot of my programs use a manually measured line to create the initial manual alignment. As we all know, the direction in which the line is measured is very important. I know Craig has posted some code that will check if the vector is correct and if not prompt the user to measure it again. This is all well and good but I was thinking about trying to use an If/End statement to get the program to run no matter which vector the line has. Has anyone messed with this before? Here is what I am thinking:
Measure a line with a vector of 1,0,0
Create a reverse line of this line so one with a vector of -1,0,0
Use an If/End to pick the line with a vector of 1,0,0 and insert it somehow into the alignment - variable & generic feature maybe?
That way, if the manual line is measured as -1,0,0 the program will create a reverse line 1,0,0 and will figure out which line to use. I can't mess around with it right now b/c the machine is in use so I am not sure how viable this approach is.
What do you guys think?
A lot of my programs use a manually measured line to create the initial manual alignment. As we all know, the direction in which the line is measured is very important. I know Craig has posted some code that will check if the vector is correct and if not prompt the user to measure it again. This is all well and good but I was thinking about trying to use an If/End statement to get the program to run no matter which vector the line has. Has anyone messed with this before? Here is what I am thinking:
Measure a line with a vector of 1,0,0
Create a reverse line of this line so one with a vector of -1,0,0
Use an If/End to pick the line with a vector of 1,0,0 and insert it somehow into the alignment - variable & generic feature maybe?
That way, if the manual line is measured as -1,0,0 the program will create a reverse line 1,0,0 and will figure out which line to use. I can't mess around with it right now b/c the machine is in use so I am not sure how viable this approach is.
What do you guys think?
Comment