I'm hoping someone has a simple answer to this question: my Shadow controllers use a "/" to designate a rapid move. The / must appear before each axis in a move like this
/X /Y /Z
for a three axis move.
So I have my XP post driver set up to do Rapid Line format like this:
{G}{X} {G}{Y} {G}{Z}
This works fine all the time if I uncheck "coordinates modal."
However, I hate that method because of the clutter and would much prefer to run with "coordinates modal". The problem occurs that whenever a duplicate move would have been inserted, that the rapid axis movement is deleted but the "/" remains.
I can easily use "find and replace" to get rid of most of these "/"'s by entering a "/+space" in the find box and leave the replacement box empty.
However, there are some instances when the "/" is alone at the end of a line, preceded by an X and/or Y move. This means that a Z was deleted because of the coordinate modality.
I cannot figure out a way to quickly delete all these "end of line" slashes without painstakingly going through all the code to check. If they are present they do cause the controller to hang.
Any Ideas? Is there a secret way to search for a character at the end of a line, which I presume is followed by a return character?
__________________ First you get good, then you get fast. Then grouchiness sets in.
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |