hexagon logo

Autorun application/script in PC-DMIS?

Like the title says...

Does anyone know of a way to have an application or script to run upon open an existing partprogram or creating a new partprogram?

Also, can I create toggle icons in the custom toolbar? Like, on/off (ie. 'points only' or 'use theos from CAD')?
Parents
  • Set PCD_App = GetObject("", "PCDLRN.Application")
    Set PCD_pps = PCD_App.PartPrograms
    Set PCD_pp = PCD_pps.Open("path/name.prg", machine) where machine is "OFFLINE" or "CMM1" - not completely sure

    I think to create a new one:
    Set PCD_pp = PCD_pps.Add("path/name.prg", units, machine, probfile)

    units = 1 for MM else Inch
Reply
  • Set PCD_App = GetObject("", "PCDLRN.Application")
    Set PCD_pps = PCD_App.PartPrograms
    Set PCD_pp = PCD_pps.Open("path/name.prg", machine) where machine is "OFFLINE" or "CMM1" - not completely sure

    I think to create a new one:
    Set PCD_pp = PCD_pps.Add("path/name.prg", units, machine, probfile)

    units = 1 for MM else Inch
Children
No Data