hexagon logo

Writing probe values

Hi all,
Is it possible to change diameter or offset values of a probe with a code ? (instead of open the probe window / edit / write the values).
Ok, it seems to be dangerous, but it could be useful..... Nauseated face
Parents
  • JEFMAN - I knocked this out in a hurry yesterday. Today I noticed that there is some code that I'd change to make it cleaner.

    From:
    'Write tip data And save changes
    Set prg.Probes("STA6").Tips("T1A0B0").MeasXYZ = pd
    prg.Probes("STA6").Tips("T1A0B0").MeasDiam = diam
    prg.Probes.SaveChanges
    


    To:
    'Write tip data And save changes
    Set tip.MeasXYZ = pd
    tip.MeasDiam = diam
    prg.Probes.SaveChanges
Reply
  • JEFMAN - I knocked this out in a hurry yesterday. Today I noticed that there is some code that I'd change to make it cleaner.

    From:
    'Write tip data And save changes
    Set prg.Probes("STA6").Tips("T1A0B0").MeasXYZ = pd
    prg.Probes("STA6").Tips("T1A0B0").MeasDiam = diam
    prg.Probes.SaveChanges
    


    To:
    'Write tip data And save changes
    Set tip.MeasXYZ = pd
    tip.MeasDiam = diam
    prg.Probes.SaveChanges
Children
No Data