hexagon logo

VBScript to capture xyzijk and devation of a surface measurement

Hi everyone,

I'm newish to PC-DMIS, I’m looking for a way to export dimension data from a constructed feature set and report the XYZ and deviation from the theoretical from the points taken from the cad model to a text file after every run.

I’ve manage to work out how to report the point data but I’m stuck on how to report the feature set any ideas?
Parents
  • The points you grouped, are they an actual feature, eg a hole or slot, or are they an amalgam of random surface points?

    By report the set, you mean the deviation of each individual point, yeah? If so, either report each point as a location dimension with XYZT, or otherwise, create generic points using the set data hits as your numbers and report from there. Personally, I would go with the first option, but here is how you work it out the other way:

    With a set named SET_C, and then change the [1] to [2], [3] etc for the number of points in the set.

    GENERIC_PNT =GENERIC/POINT,DEPENDENT,CARTESIAN,$
    NOM/XYZ,<SET_C.HIT[1].TX,SET_C.HIT[1].TY,SET_C.HIT[1].TZ>,$
    MEAS/XYZ,<SET_C.HIT[1].X,SET_C.HIT[1].Y,SET_C.HIT[1].Z>$
    NOM/IJK,<SET_C.HIT[1].TI,SET_C.HIT[1].TJ,SET_C.HIT[1].TK>$
    MEAS/IJK,<SET_C.HIT[1].I,SET_C.HIT[1].J,SET_C.HIT[1].K>
Reply
  • The points you grouped, are they an actual feature, eg a hole or slot, or are they an amalgam of random surface points?

    By report the set, you mean the deviation of each individual point, yeah? If so, either report each point as a location dimension with XYZT, or otherwise, create generic points using the set data hits as your numbers and report from there. Personally, I would go with the first option, but here is how you work it out the other way:

    With a set named SET_C, and then change the [1] to [2], [3] etc for the number of points in the set.

    GENERIC_PNT =GENERIC/POINT,DEPENDENT,CARTESIAN,$
    NOM/XYZ,<SET_C.HIT[1].TX,SET_C.HIT[1].TY,SET_C.HIT[1].TZ>,$
    MEAS/XYZ,<SET_C.HIT[1].X,SET_C.HIT[1].Y,SET_C.HIT[1].Z>$
    NOM/IJK,<SET_C.HIT[1].TI,SET_C.HIT[1].TJ,SET_C.HIT[1].TK>$
    MEAS/IJK,<SET_C.HIT[1].I,SET_C.HIT[1].J,SET_C.HIT[1].K>
Children
No Data