Can anyone explain a way to report a summary of a group of features? For example, reporting only the maximum and minimum sizes for a group of holes or the range.
Reporting a range
Collapse
X
-
assign/v5=min(array(27_hiden_1.meas,27_hiden_2.meas,27_hi den_3.meas,27_hiden_4.meas,27_hiden_5.meas,27_hide n_6.meas,27_hiden_7.meas,27_hiden_8.meas,27_hiden_ 9.meas,27_hiden_10.meas))
assign/v6=max(array(27_hiden_1.meas,27_hiden_2.meas,27_hi den_3.meas,27_hiden_4.meas,27_hiden_5.meas,27_hide n_6.meas,27_hiden_7.meas,27_hiden_8.meas,27_hiden_ 9.meas,27_hiden_10.meas))
f5 =generic/circle,dependent,cartesian,out,$
nom/xyz,<-0.00002,0.00017,0.00013>,$
meas/xyz,<-0.00002,0.00017,0.00013>,$
nom/ijk,<0.0000051,0.0000798,1>,$
meas/ijk,<0.0000051,0.0000798,1>,$
radius/0.2,v5
f6 =generic/circle,dependent,cartesian,out,$
nom/xyz,<-0.00002,0.00017,0.00013>,$
meas/xyz,<-0.00002,0.00017,0.00013>,$
nom/ijk,<0.0000051,0.0000798,1>,$
meas/ijk,<0.0000051,0.0000798,1>,$
radius/0.2,v6
- Likes 1
Comment
-
what thomas pilc said, but apply it to features instead of dimensions. You can also break the code down so you only need to assign the array once.
Code:assign/v4=ARRAY(27_hiden_1.R,27_hiden_2.R,27_hi den_3.R,27_hiden_4.R,27_hiden_5.R,27_hide n_6.R,27_hiden_7.R,27_hiden_8.R,27_hiden_ 9.R,27_hiden_10.R) assign/v5=minindex(v4) assign/v6=maxindex(v4) assign/v7=v4[v5].all assign/v8-v4[v6].all
Then create your generic representations of them
Code:f5 =generic/circle,dependent,cartesian,out,$ nom/xyz,<v7.tx,v7.ty,v7.tz>,$ meas/xyz,<v7.x,v7.y,v7.z>,$ nom/ijk,<v7.ti,v7.tj,v7.tk>,$ meas/ijk,<v7.i,v7.j,v7.k>,$ radius/v7.tr,v7.r f6 =generic/circle,dependent,cartesian,out,$ nom/xyz,<v8.tx,v8.ty,v8.tz>,$ meas/xyz,<v8.x,v8.y,v8.z>,$ nom/ijk,<v8.ti,v8.tj,v8.tk>,$ meas/ijk,<v8.i,v8.j,v8.k>,$ radius/v8.tr,v8.r
[/CODE]
- Likes 1
Comment
Related Topics
Collapse
-
by jabbettHow can I report out the high and low values for a group of like features? Using 2014.
-
Channel: PC-DMIS for CMMs
05-15-2015, 08:22 PM -
-
Hi guys,
As the topic I have a problem with pulling highest points from my skan.
It would not be a problem with one point, but when i need...-
Channel: PC-DMIS for CMMs
04-29-2020, 02:25 AM -
-
by geshengrongP1 =GENERIC/POINT,DEPENDENT,CARTESIAN,$
NOM/XYZ,<-2.7499,-108.0927,-31.9777>,$
MEAS/XYZ,<-2.7499,-108.0927,-31.9777>,$...-
Channel: PC-DMIS Code Samples
07-04-2017, 11:36 AM -
-
by JEFMANIn the code below, PL1 and PL2 should be measured planes :
"Radius" is the radius of cylinder to create.
Except for the planes,...-
Channel: PC-DMIS Code Samples
11-04-2010, 11:24 AM -
-
by louisdSo, I have a scan (F23), which I'm trying to extract the point that equates to the max X value.
Code:ASSIGN/V1=F23.HIT[MAXINDEX(F23.HIT[1..F23.NUMHI
-
Channel: PC-DMIS for CMMs
02-04-2019, 12:20 PM -
Comment