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 my friends,

    here you go

    MoveInc2.txt

    *1)
    i had a lot of problems with the script engine from pcDMIS, the "Wait" or "Sleep" function is simply not working,
    so i cant say the script to wait for the excuted partprogram (the sleep from win32 api works but interrupts the excuted partprogram too, so its sleeps forever ^^)
    -> this script only works as a macro from Excel !

    *2)
    the partprogramm has to be open and in "OFFLINE-mode"

    *3)
    the script searches for increment movement,
    than execute the Partprogram to this point,
    insert a movement-Point with extracted probeposition,
    and delete the increment movement
    until no increment movement found.

    *4)
    the script is based on extracted probeposition in Offline mode,
    if the virtual controler has not the right points for some strange reasons
    this will not work at all (i have made two positiv tests)

    *5)
    the partprogramm will be excuted partways .. thats why it will NOT work with goto commands or flow-control commands.
    absolut movements in loops is maybe not a good idee anyway.

    Attached Files
Reply
  • Hi my friends,

    here you go

    MoveInc2.txt

    *1)
    i had a lot of problems with the script engine from pcDMIS, the "Wait" or "Sleep" function is simply not working,
    so i cant say the script to wait for the excuted partprogram (the sleep from win32 api works but interrupts the excuted partprogram too, so its sleeps forever ^^)
    -> this script only works as a macro from Excel !

    *2)
    the partprogramm has to be open and in "OFFLINE-mode"

    *3)
    the script searches for increment movement,
    than execute the Partprogram to this point,
    insert a movement-Point with extracted probeposition,
    and delete the increment movement
    until no increment movement found.

    *4)
    the script is based on extracted probeposition in Offline mode,
    if the virtual controler has not the right points for some strange reasons
    this will not work at all (i have made two positiv tests)

    *5)
    the partprogramm will be excuted partways .. thats why it will NOT work with goto commands or flow-control commands.
    absolut movements in loops is maybe not a good idee anyway.

    Attached Files
Children
No Data