Your Products have been synced, click here to refresh
These are just sporadic and most likely operator errors. I want to create a script that will retrieve Theo and Target for all features and the nominal for all dims and generate an Excel Worksheet showing all the XYZ and ijk values for each. Then I will use conditional formatting to shade the values in the Target and Dims that are not equal to the values for the Theo. This will make it easy for the operator to see where there are differences. They would need to then review these and determine if the difference is intended, a feature that is so far from nominal that the target had to be different, or if they are errors.
dim app as object dim prog as object progName$ = "test.prg" set app = CreateObject("PCDLRN.Application") set prog = app.PartPrograms.Open(progName$,"Offline") dim cmd as object numCmds = prog.Commands.Count for n = 1 to numCmds cmd = prog.Commands.Item(n) theox = cmd.GetFieldValue(THEO_X,0) targx = cmd.GetFieldValue(TARG_X,0) next n
These are just sporadic and most likely operator errors. I want to create a script that will retrieve Theo and Target for all features and the nominal for all dims and generate an Excel Worksheet showing all the XYZ and ijk values for each. Then I will use conditional formatting to shade the values in the Target and Dims that are not equal to the values for the Theo. This will make it easy for the operator to see where there are differences. They would need to then review these and determine if the difference is intended, a feature that is so far from nominal that the target had to be different, or if they are errors.
dim app as object dim prog as object progName$ = "test.prg" set app = CreateObject("PCDLRN.Application") set prog = app.PartPrograms.Open(progName$,"Offline") dim cmd as object numCmds = prog.Commands.Count for n = 1 to numCmds cmd = prog.Commands.Item(n) theox = cmd.GetFieldValue(THEO_X,0) targx = cmd.GetFieldValue(TARG_X,0) next n
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |