cncandi
Posts: 8
Joined: Thu Mar 29, 2018 3:34 am

delete "from to" in script

Thu Jul 15, 2021 11:06 am

is it possible to delete all words from any word to any word?

For example:

Code: Select all

lm({X 7.621,Y 48.681,Z 0.225})0.0000,F1800
lm({X 7.576,Y -56.324,Z 0.225})5.3042,F735
I want to delete all words after }) to the end of the line.

Result:
lm({X 7.621,Y 48.681,Z 0.225})
lm({X 7.576,Y -56.324,Z 0.225})

one more question ...
is it possible to output only modal commands. For example:
lm({X 7.621,Y 48.681,Z 0.225})
lm({X 7.576,Y -56.324,Z 0.225})
lm({X 68.833,Y -56.333,Z 0.225})
lm({X 28.972,Y 56.233,Z 0.225})

I need:
lm({X 7.621,Y 48.681,Z 0.225})
lm({X 7.576,Y -56.324})
lm({X 68.833,Y -56.333})
lm({X 28.972})

S3D-Jake
Posts: 948
Joined: Wed Jun 20, 2018 12:45 pm

Re: delete "from to" in script

Mon Jul 19, 2021 3:11 pm

1. Turn off 5D Firmware (include E dimension) in the G-Code tab.
2. Then in the post processing area of the Scripts tab you can just add DELETE commands for the F (Speed in mm/min) values.
"A bird does not sing because it has an answer. It sings because it has a song."

Return to “General Discussion and Tips”