hexagon logo

manipulating arrays question

i'm a noob, so this may be pretty simple for the rest of you. I have a large number of auto-vector hits in this program, what I want is to report the minimum and maximum tol values. I have been reading hte help files and manuals, but I can't figure this out. here is what i have so far:

scn1 = feature set of all the points
loc1234 = dimensioned scn1 tol
assign v1 = sortup(array(loc1234.t.meas))

Or do I have to report all the individual points and then construct an array like this: assign v1 = array(loc1.t.meas, loc2.t.meas.....etc)
if so, is there an easy way to do that?
Parents
  • Back to work after a few days off.
    The CODE IN RED needs to be changed to the CODE IN BLUE.

    the constructed feature set needs to input the number of hits.

    Take the CODE IN RED out.
    $$ NO,*****
    $$ NO,***** create t-value for each hit in scn1
    $$ NO,*****
    [COLOR=#ff0000]ASSIGN/VAR1=DOT((SCN1.HIT[1..scn1.numhits].XYZ-SCN1.HIT[1..numhits].TXYZ),SCN1.HIT[1..numhits].TIJK)[/COLOR]
    $$ NO, *****
    [COLOR=#0000ff]ASSIGN/VAR1=DOT((SCN1.HIT[1..scn1.numhits].XYZ-SCN1.HIT[1..scn1.numhits].TXYZ),SCN1.HIT[1..scn1.numhits].TIJK)[/COLOR]
    $$ NO,*****
    [COLOR=#0000ff]ASSIGN/VAR1=DOT((SCN1.HIT[1..17].XYZ-SCN1.HIT[1..17].TXYZ),SCN1.HIT[1..17].TIJK)[/COLOR]
    $$ NO, *****
    $$ NO, ***** calculate profile for scn1
    $$ NO, ***** absolute value of max value - min value
    $$ NO, ***** then set variable to 4 place decimal
    $$ NO, *****
    ASSIGN/MAX_VAR1=MAX(VAR1)
    ASSIGN/MIN_VAR1=MIN(VAR1)
    ASSIGN/VAR2=ABS(MAX_VAR1-MIN_VAR1)
    ASSIGN/PROF_VAR2=FORMAT("%.4f",VAR2)
    COMMENT/REPT, "MAX SCN1 = "+MAX_VAR1
    COMMENT/REPT, "MIN SCN1 = "+MIN_VAR1
    COMMENT/REPT, "PROFILE OF SCN1 ="+PROF_VAR2
    
Reply
  • Back to work after a few days off.
    The CODE IN RED needs to be changed to the CODE IN BLUE.

    the constructed feature set needs to input the number of hits.

    Take the CODE IN RED out.
    $$ NO,*****
    $$ NO,***** create t-value for each hit in scn1
    $$ NO,*****
    [COLOR=#ff0000]ASSIGN/VAR1=DOT((SCN1.HIT[1..scn1.numhits].XYZ-SCN1.HIT[1..numhits].TXYZ),SCN1.HIT[1..numhits].TIJK)[/COLOR]
    $$ NO, *****
    [COLOR=#0000ff]ASSIGN/VAR1=DOT((SCN1.HIT[1..scn1.numhits].XYZ-SCN1.HIT[1..scn1.numhits].TXYZ),SCN1.HIT[1..scn1.numhits].TIJK)[/COLOR]
    $$ NO,*****
    [COLOR=#0000ff]ASSIGN/VAR1=DOT((SCN1.HIT[1..17].XYZ-SCN1.HIT[1..17].TXYZ),SCN1.HIT[1..17].TIJK)[/COLOR]
    $$ NO, *****
    $$ NO, ***** calculate profile for scn1
    $$ NO, ***** absolute value of max value - min value
    $$ NO, ***** then set variable to 4 place decimal
    $$ NO, *****
    ASSIGN/MAX_VAR1=MAX(VAR1)
    ASSIGN/MIN_VAR1=MIN(VAR1)
    ASSIGN/VAR2=ABS(MAX_VAR1-MIN_VAR1)
    ASSIGN/PROF_VAR2=FORMAT("%.4f",VAR2)
    COMMENT/REPT, "MAX SCN1 = "+MAX_VAR1
    COMMENT/REPT, "MIN SCN1 = "+MIN_VAR1
    COMMENT/REPT, "PROFILE OF SCN1 ="+PROF_VAR2
    
Children
No Data