I have a custom post processor which can do the substitution , and have modified it to do so for the refactored Path code also, but have have not been able to do a "refactored" version.
Is there a way to trigger the substitution from the post processor via the values[ ] mechanism ?
I see this in Utils.py, which I read as a substitution routine
Code: Select all
def stringsplit(commandline):
returndict = {
"command": None,
"X": None,
"Y": None,
"Z": None,
"A": None,
"B": None,
"F": None,
"T": None,
"S": None,
"I": None,
"J": None,
"K": None,
"txt": None,
}
wordlist = [a.strip() for a in commandline.split(" ")]
if wordlist[0][0] == "(":
returndict["command"] = "message"
returndict["txt"] = wordlist[0]
else:
returndict["command"] = wordlist[0]
for word in wordlist[1:]:
returndict[word[0]] = word[1:]
return returndict
Pre refactor I could do this from the post processor
Code: Select all
elif param == 'Q': # modification
outstring.append('I' + str(float(c.Parameters['Q']))) # substitution for SMC4motionController drilling
This is probably best directed at LarryWoestman but I could not set up a ping without the unique member number and he is not in the pinger macro list yet.