Quote Originally Posted by Jonathan View Post
I could write a quick program to do that, but find and replace will be fine. I use that all the time to edit the code when I accidentally put the wrong feedrates/retract height in.
Yes I do that as well if I have too. Now i'm now expert on find-replace but dont think the standard find-replace would work because it would only repalce A with B.

This would need to find the T# then replace the P# of the G4 command. The code should really only put one T# for each tool (or pad in this case) so there will be lots of proceding lines with no T# untill next pad change or T#. So just finding the T# and replacing the whole line won't work Unless everyline starts with a T# which hisn't very effficient.

The Script would need to look for the T# then replace any proceding G4 P### time values with a stored value matching that T# then repeat untill it find another different T# so on n so forth.
I don't know how to do this with the standard find-replace without using some kind of script which defeats the purpose so may as well just use the script straight off.
Jonathan If you know how then I'd be interested because like you I do use it to change code on the fly and being able to target one value and change another select value would be good info.!