hexagon logo

Set TOUCHSPEED from Visual Basic - Is it possible?

Hi All,

I have a VB6 program that references the pcdlrn.tlb (v4.2).

In my VB6 code I'm then able to open and execute a PC-DMIS part program.

Question is once I've opened my part program is it then possible to set the TOUCHSPEED before I execute it?

Kind Regards,
Chris
Parents
  • Sorted!

    In case anyone is interested, here's my code...

    Dim pcdCommand As PCDLRN.Command

    If Not mdTouchSpeed = 0 Then
    For Each pcdCommand In mobjCurrentPart.Commands
    If pcdCommand.Type = TOUCH_SPEED Then
    Call pcdCommand.PutText(mdTouchSpeed, F_TOUCHSPEED, 0)
    Call pcdCommand.ReDraw
    End If
    Next pcdCommand
    End If

    Thanks for your replies guys.
Reply
  • Sorted!

    In case anyone is interested, here's my code...

    Dim pcdCommand As PCDLRN.Command

    If Not mdTouchSpeed = 0 Then
    For Each pcdCommand In mobjCurrentPart.Commands
    If pcdCommand.Type = TOUCH_SPEED Then
    Call pcdCommand.PutText(mdTouchSpeed, F_TOUCHSPEED, 0)
    Call pcdCommand.ReDraw
    End If
    Next pcdCommand
    End If

    Thanks for your replies guys.
Children
No Data