Ja, sowas. Aber wo sind die Einstellungen dafür? Wo ist der Postprozessor in Cura?
I would be a custom written script. And I've not written anything like that for version 15.x of Cura, only Cura 2.x
If I am understanding correctly, you would want the g-code:
G1 X90.6 Y13.8 E22.4
to change to:
G1 X90.6 Y13.8 B22.4
as an example. correct?
Ja, yes, genau so.
Ich habe das mit "suchen und ersetzen" im normalem Texteditor bis jetzt paar mal gemacht, aber ich habe gehofft, es geht komfortabler.
I'm looking at some of the version 15.x plugins. They look pretty straightforward. Give me 24hrs and I should have something for your to try...
Here's your plugin. Place it in the C:\Program Files (x86)\Cura_15.nn.n\plugins folder and restart Cura:
#Name: NozzleB #Info: Replace Extruder 'E' designator with 'B' #Depend: GCode #Type: postprocess __copyright__ = "Written by Da Hai Zhu - No copyright. Use as you wish. Caveat Emptor" import re from Cura.util import profile # Read the ENTIRE g-code file into memory with open(filename, "r") as f: lines = f.readlines() with open(filename, "w") as f: for lIndex in xrange(len(lines)): line = lines[lIndex] if ("G0" in line or "G1" in line) and ("E" in line) : line = re.sub("E","B",line) f.write(line+'\r\n')
Python is persnickety, so if you have problems with this running via copy/paste from this screen, download it here:
http://bitman.org/dahai/NozzleB.zip
Let me know how it goes!
Edited by GuestHallo, vielen Dank, das hat funktioniert!!
Ich habe aber noch in Cura unter "Erweiterungen" die "NozzleB" auswählen müssen. Und ich habe noch eine Kleinigkeit nicht gesagt: Cura hat mir den Extruder nicht als "E", sondern als "A" immer ausgegeben. Ich habe aber den Script problemlos anpassen können - sind ja nur paar Zeilen.
Sieht jetz so aus:
#Name: NozzleB
#Info: Replace Extruder 'A' designator with 'B'
#Depend: GCode
#Type: postprocess
__copyright__ = "Written by Da Hai Zhu - No copyright. Use as you wish. Caveat Emptor"
import re
from Cura.util import profile
# Read the ENTIRE g-code file into memory
with open(filename, "r") as f:
lines = f.readlines()
with open(filename, "w") as f:
for lIndex in xrange(len(lines)):
line = lines[lIndex]
if ("G0" in line or "G1" in line) and ("A" in line) :
line = re.sub("A","B",line)
f.write(line+'\r\n')
Nochmals vielen Dank, sehr gute Hilfe!!
Schönes Wochende!
Recommended Posts
DaHai8 74
Sounds like a job for a Post-Processing Plugin to change the g-code from E to B, maybe?
Link to post
Share on other sites