I was 3d printing an object and 10 hours into it the base came off and the project was ruined. I was able to locate in the printer instructions exactly which layer the error occurred at so now I am able to edit the instructions file so I can only print the remaining piece.
So I deleted the previous data in the file and I'm on the correct layer. However the Z (height) of the nozzle part of the instructions need to be modified so when I print the remaining part of the piece it starts on the base instead of starting in the air.
That's the background story. If you don't understand that, no worries. What I need is to have a formula that can replace text within text based on an incremental scale.
Here is some example rows of the file I pasted into excel
G0 X99.761 Y96.336
G0 X100.065 Y96.661
G0 X101.465 Y98.967
G0 X102.205 Y100.605
G0 X96.761 Y101.122
;TIME_ELAPSED:35185.445884
;LAYER:434
G0 X96.761 Y101.122 Z0.2
M204 S500
M205 X20 Y20
;TYPE:FILL
G1 F3600 X99.043 Y100.511 E3085.42512
G1 X99.139 Y100.486
M204 S5000
See right under Layer 434 there is a line that says Z0.2 at the end of it?
Imagine 5,000 rows down there is layer 435 and underneath there is the Z value again. We need a formula to change that Z value to Z0.4. Then another 5,000 rows down we see layer 436 and we want that Z value to be 0.6 and so on.
In all the lines of text between each Z value the letter Z never appears. So it is easy to find each Z value. It's the part where we find whatever it is and then replace it with the previous Z + .2 that I can't figure out.
I would manually do this in find and replace, but there are hundreds of rows I need to update so hoping someone has a formula to tackle this issue
Thank you all for your help!
So I deleted the previous data in the file and I'm on the correct layer. However the Z (height) of the nozzle part of the instructions need to be modified so when I print the remaining part of the piece it starts on the base instead of starting in the air.
That's the background story. If you don't understand that, no worries. What I need is to have a formula that can replace text within text based on an incremental scale.
Here is some example rows of the file I pasted into excel
G0 X99.761 Y96.336
G0 X100.065 Y96.661
G0 X101.465 Y98.967
G0 X102.205 Y100.605
G0 X96.761 Y101.122
;TIME_ELAPSED:35185.445884
;LAYER:434
G0 X96.761 Y101.122 Z0.2
M204 S500
M205 X20 Y20
;TYPE:FILL
G1 F3600 X99.043 Y100.511 E3085.42512
G1 X99.139 Y100.486
M204 S5000
See right under Layer 434 there is a line that says Z0.2 at the end of it?
Imagine 5,000 rows down there is layer 435 and underneath there is the Z value again. We need a formula to change that Z value to Z0.4. Then another 5,000 rows down we see layer 436 and we want that Z value to be 0.6 and so on.
In all the lines of text between each Z value the letter Z never appears. So it is easy to find each Z value. It's the part where we find whatever it is and then replace it with the previous Z + .2 that I can't figure out.
I would manually do this in find and replace, but there are hundreds of rows I need to update so hoping someone has a formula to tackle this issue
Thank you all for your help!