I used an auto-line to measure a feature and want to construct a line from the two highest points. How do I go about doing this? If I'm not mistaken, PC-DMIS creates the line with an average of all the points it takes with the auto-line.
First of all, note that the two highest points of the line - in the current alignment - doesn't necessarily simulate a real (physical) tangent line, if that's what you actually need. In that case, if you have PC-DMIS 2019 R1 (or later), you should use the new Line construction method "Secondary Datum" to achieve this.
To find the two highest points relative to the *line*, you need to be aligned to the line.
Note that the code from
bfire85 assumes that X is your 'up', the direction you look for the highest point in. Change the .X, in the first ASSIGN, to .Y or .Z depending on your reality.
First of all, note that the two highest points of the line - in the current alignment - doesn't necessarily simulate a real (physical) tangent line, if that's what you actually need. In that case, if you have PC-DMIS 2019 R1 (or later), you should use the new Line construction method "Secondary Datum" to achieve this.
To find the two highest points relative to the *line*, you need to be aligned to the line.
Note that the code from
bfire85 assumes that X is your 'up', the direction you look for the highest point in. Change the .X, in the first ASSIGN, to .Y or .Z depending on your reality.