Public WithEvents PartEvents As pcdlrn.PartProgram
Public WithEvents MachineEvents As pcdlrn.Machine
Public WithEvents AppMeasureEvents As pcdlrn.ApplicationObjectEvents
Private Sub Form_Load()
Set PCDMISApp = CreateObject("PCDLRN.Application")
Set AppMeasureEvents = PCDMISApp.ApplicationEvents
Set PartEvents = PCDMISApp.ActivePartProgram
Set MachineEvents = PCDMISApp.ActivePartProgram.ActiveMachine
End Sub
Private Sub MachineEvents_Command(ByVal Code As Long)
Private Sub MachineEvents_ExecuteManualScanHit(ByVal X As Double, ByVal Y As Double, ByVal Z As Double, ByVal I As Double, ByVal J As Double, ByVal K As Double)
Public WithEvents PartEvents As pcdlrn.PartProgram
Public WithEvents MachineEvents As pcdlrn.Machine
Public WithEvents AppMeasureEvents As pcdlrn.ApplicationObjectEvents
Private Sub Form_Load()
Set PCDMISApp = CreateObject("PCDLRN.Application")
Set AppMeasureEvents = PCDMISApp.ApplicationEvents
Set PartEvents = PCDMISApp.ActivePartProgram
Set MachineEvents = PCDMISApp.ActivePartProgram.ActiveMachine
End Sub
Private Sub MachineEvents_Command(ByVal Code As Long)
Private Sub MachineEvents_ExecuteManualScanHit(ByVal X As Double, ByVal Y As Double, ByVal Z As Double, ByVal I As Double, ByVal J As Double, ByVal K As Double)