Is there a way to change a lot of different data in a .LS file with a common one in one shot ?
Ex: Y= 12345.234 mm,
Y= 890.234 mm,
Y= 4565.234 mm,
by :
Y = 0.000 mm,
Is there a way to change a lot of different data in a .LS file with a common one in one shot ?
Ex: Y= 12345.234 mm,
Y= 890.234 mm,
Y= 4565.234 mm,
by :
Y = 0.000 mm,
Sure!
You need to use Regular expressions!
Download Actual search and replace, is really easy to use
http://www.divlocsoft.com/download.htm
Install "Actual search and replace" from divlocsoft
Set the path to your file
in Mask use the name of your file (actually you can process mutiple-files at once)
Choose "search&repalce" tab
check "Reg Expr"
check "replace"
type the search for string and the replace string
OK, I don´t know if your are familiar with regular expressions (I just know the basics)
Just in case here is a step by step guide to do what you want:
if you type like for example Y = 1903.874 mm,
and pick search, is going to find all the strings that match that string
but you want to change every string Y = xxxx.xxx mm,
Type
Y = \d+\.\d+ mm,
that means: find all strings starting by Y =
followed by one or more digits \d+
followed by a dot \.
followed by more digits \d+
and closed by mm,
Is going to find all the strings in your LS
finally type the replace string
Y = 0.000 mm,
the program allows for changing one at a time, or all at once
this tool is very useful in robot programming
You can do the same thing in notepad++ and it is free. Not $30.00 like actual search and replace program.