hexagon logo

Move Increment to Move Point Conversion Script?

Confused Is anybody familiar with a script that will scour your program and replace all the Move Increments with Move Points in the alignment context in which the moves reside? My team really doesn't like Move increments, but I really like the convenience while programing. It would be neat if there were a macro that converts them all with a click of a button.Confused
Parents
  • Hi,
    @


    with this you can extract probe Position in Offline mode
    Private Sub test()
     
      Dim App As PCDLRN.Application
      Set App = CreateObject("PCDLRN.Application")
      Dim Part As PCDLRN.PartProgram
      Set Part = App.ActivePartProgram
    
      Dim MA As Object
      Set MA = App.Machines("OFFLINE")
     
      'MsgBox MA.Name
      MsgBox MA.ProbePosition.X & " - " & MA.ProbePosition.Y & " - " & MA.ProbePosition.Z
    End Sub
    


    this is interesting
    i can execute a program partway in Offline-Mode and than extract the probe position.
    a Quick test shows that he extract the right probe data on every stop even with fancy aligment changes.
    thats cool, in offline mode you cant destroy something

    i try to build a working script for this in some days
  • Hmm, this gives coordinates in the current alignment in the edit window? Or coordinates in the machine alignment? If it uses the current alignment, then this is a very useful command.

    When your previous script iterates through commands, does it start with the first line of the edit window and just scroll line by line until it reaches the bottom? or does it follow the context of the commands. For example, if the iteration reaches a loop command, will the script loop with the program or simply continue as it would if the loop wasn't there? Another way of asking is the script aware of flow control?
Reply
  • Hmm, this gives coordinates in the current alignment in the edit window? Or coordinates in the machine alignment? If it uses the current alignment, then this is a very useful command.

    When your previous script iterates through commands, does it start with the first line of the edit window and just scroll line by line until it reaches the bottom? or does it follow the context of the commands. For example, if the iteration reaches a loop command, will the script loop with the program or simply continue as it would if the loop wasn't there? Another way of asking is the script aware of flow control?
Children
No Data