Using the Array Function in PCDMIS PCDMIS Tech Tips CMMXYZ











>> YOUR LINK HERE: ___ http://youtube.com/watch?v=lO9Fn5-guTw

This Tech Tip from CMMXYZ shows how to extract the highest point in a scan using the Array function. This is a quick and easy way to filer out a massive amount of scan data. • Hey. So in this video, I'm going to show you how to use an array to identify the highest point of a scan in a given access. So if you look at my scan here, it's a patch scan, with 514 points. So scans can get very dense, very large. And in order to filter out a lot of the data, we can use what's called an array and then identify that high point, and in this case in the Y axis, and then we can dimension it, and so we can know the exact location of that high point. Okay, I'll show you how it's done. • So we're gonna start by assigning a variable, and I'll call this high_point. So the name, you can call it whatever you like. So what we're gonna use is what's called the maxindex. So maxindex parentheses, and my skin has an ID of scan1. So I need to use that. So scan1. I'll use .hit. And then this is the important part. I need to use the square bracket to indicate an array. So I'll start with hit[1.., the name of the feature again, so this is scn1, and then I'll use something called numhits. So I don't necessarily need to know the number of hits in the scan, I just wanted to survey all of them, and then it will draw out the max hit. • Okay, so I need to close my array with a second square bracket and you'll notice it's all lowercase. It is case sensitive, but PC-DMIS will turn that into uppercase. So the last part of my variable, I need to indicate the y axis. Okay, so let's close that with the parentheses. And I'll just hit Enter. So it looks good. So what this allows us to do is turn the variable into a feature. So it will recognize this variable as the feature, has a point that is the highest point in the scan. So if we mouse over the variable, we can see it's giving us number 191. So that is telling me that of the 514 heads, hit 191 is the highest. • Okay, so now that we have the variable that identifies the high point as a feature, we can now dimension it. So I'll just do a simple location dimension, pick my, scan one is the feature. For the idea of the dimension, I'll call it HIGHPOINT. So I'll dimension X, Y, Z axis and create, and we'll Close. So you can see the dimension and full label there. That would look good in a screen capture. So we're not finished yet, we need to actually do a bit of code inside of the dimension location. So right now it's just dimensioning the scan as a whole. So we need to actually identify our variable inside of the dimension we need to plug that in. So I wanna take .hit, after the feature name, SCN1. Again, I'll use the array bracket, and here I need to plug in my variable. • So it's HIGH_POINT].So when I hit the Tab key, you should see the numbers update to dimension are point 191. So hit the Tab key and there we go. So now we can see the X, Y, Z measured values of our high point. Okay, so that's about it. I just wanted to show you the code that we use to extract that high point in a scan. Well, I hope you found that useful. Thanks for joining me, and we'll see you next time. • About CMMXYZ • We are North America's foremost independent measurement solutions provider. We sell new and used coordinate measuring machines, provide measuring services, upgrade and repair your systems. • • CMMXYZ - Coordinate Measuring Machines - http://www.cmmxyz.com/ • Follow us on Facebook -   / cmmxyz   • Get the latest on Twitter -   / cmmxyz   • Follow CMMXYZ on LinkedIn -   / canadian-measurement---metrology-inc  . • Learn more about CMMXYZ on our blog - https://blog.cmmxyz.com/blog • Subscribe to our YouTube Channel -    / cmmxyzvideo  

#############################









Content Report
Youtor.org / YTube video Downloader © 2025

created by www.youtor.org