Hello Mark, you need to rename the layer in your tool which is used to generate the dxf. E.g. AutoCAD. This can not be done in dxf2gcode. Christian
Hello Mark, you need to rename the layer in your tool which is used to generate the dxf. E.g. AutoCAD. This can not be done in dxf2gcode. Christian
Mark
Maybe I can be of some assistance. Many proprietary cad programs and open-source cad programs use different syntax for their layer names when the file is saved. It most likely will not be to Auto-Cad standards. I have the same problem with the Cad program that I use, only a little different. The program will allow a colon in the name, but white spaces show up as underscores in DXF2GCODE which does not work. When I reopen the DXF file with my Cad program the white spaces in the layer names are just spaces as I saved it. For the developers of DXF2GCODE to write their program to accept every syntax that different Cad programs save their files with would be impossible. If you want to use the layer MILL function in your layer names with DXF2GCODE may I suggest you try something. Download and install the program called JEDIT, http://www.jedit.org/ it is a open-source free program, you will need a JAVA runtime environment for the program to function. This works for Windows as well as LINUX. Save a DXF file with QCAD and give a layer a name but instead of using a colon use a exclamation point, (!) everywhere you would need a colon for DXF2GCODE in the layer name, QCAD will do this. Then open it by right clicking on it and choose open with JEDIT. There is a ton of information in this file, but if you scroll thru you will be able to recognize the code with your layer name. You can edit the file by hand then resave and it will work in DXF2GCODE. But there is a better way, JEDIT has the capability for you to record, (create) a macro to edit the file for you. In the MENUS bar there is a heading called Macros. In sub menu use Record Macro, it will record all of your key strokes. So use the search and replace function to find the MILL! and replace with MILL: Remember to stop recording your macro and to save it. The next time you need to edit a DXF file to work with DXF2GCODE open it with JEDIT and run your macro it will be in the Macro sub menu with the name you gave it when you saved it.
Hope this is of some help
Tim
Mark
Maybe I can be of some assistance. Many proprietary cad programs and open-source cad programs use different syntax for their layer names when the file is saved. It most likely will not be to Auto-Cad standards. I have the same problem with the Cad program that I use, only a little different. The program will allow a colon in the name, but white spaces show up as underscores in DXF2GCODE which does not work. When I reopen the DXF file with my Cad program the white spaces in the layer names are just spaces as I saved it. For the developers of DXF2GCODE to write their program to accept every syntax that different Cad programs save their files with would be impossible. If you want to use the layer MILL function in your layer names with DXF2GCODE may I suggest you try something. Download and install the program called JEDIT, http://www.jedit.org/ it is a open-source free program, you will need a JAVA runtime environment for the program to function. This works for Windows as well as LINUX. Save a DXF file with QCAD and give a layer a name but instead of using a colon use a exclamation point, (!) everywhere you would need a colon for DXF2GCODE in the layer name, QCAD will do this. Then open it by right clicking on it and choose open with JEDIT. There is a ton of information in this file, but if you scroll thru you will be able to recognize the code with your layer name. You can edit the file by hand then resave and it will work in DXF2GCODE. But there is a better way, JEDIT has the capability for you to record, (create) a macro to edit the file for you. In the MENUS bar there is a heading called Macros. In sub menu use Record Macro, it will record all of your key strokes. So use the search and replace function to find the MILL! and replace with MILL: Remember to stop recording your macro and to save it. The next time you need to edit a DXF file to work with DXF2GCODE open it with JEDIT and run your macro it will be in the Macro sub menu with the name you gave it when you saved it.
Hope this is of some help
Tim
On 10/14/2014 2:29 PM, Chatter Mark wrote:
--
Am Montag, 13. Oktober 2014 20:50:57 UTC+2 schrieb Christian Kohlöffel:Hello Mark, you need to rename the layer in your tool which is used to generate the dxf. E.g. AutoCAD. This can not be done in dxf2gcode. Christian
Hello again, Christian,
the more I think about this, the more I am in doubt if I understand that directive right, specially for the use of Qcad.
A practical step-by-step example of what to do with a layer in qcad would help me (and potentially others, I guess) tremendously! Thanks!
Regards,
CM
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-users".
To post a message, send mail to dxf2gcode-users@googlegroups.com
To unsubscribe, send mail to dxf2gcode-users+unsubscribe@googlegroups.com
See http://groups.google.de/group/dxf2gcode-users?hl=en for more options
and the dxf2gcode project page at http://code.google.com/p/dxf2gcode/
---
You received this message because you are subscribed to the Google Groups "dxf2gcode-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-users+unsubscribe@googlegroups.com.
Christian,
in Qcad I can rename a layer, but it refuses to accept a colon ( : ) as a character in the name. It just ignores that. Does it have to be that exotic?
As for an example of how to use the various LayerControl stuff, I've written a blog post about that topic; unfortunately this is in German so don't know if that helps. I could translate it to English however, if requested.A layer name can include up to 255 characters (double-byte or alphanumeric): letters, numbers, spaces, and several special characters. Layer names cannot include the following characters:
< > / \ “ : ; ? * | = ‘
(Generiert mit: DXF2GCODE, Version: PyQt4 Beta, Datum: $Date:: 2014-02-11 12:27:10#$)(Erstellt aus der Datei: F:/caddaten/misc/millthissimple03.dxf)(Zeit: Tue Oct 14 23:25:16 2014)G21 (Units in millimeters) G90 (Absolute programming) G64 (Default cutting) G17 (XY plane) G40 (Cancel radius comp.) G49 (Cancel length comp.)
G0 Z 15.000
Robert,
thanks for your reply. And sorry to none-but-english speaking readers for some German here now!
Mein Deutsch ist trotz Bescheinigung für verhandlungssicheres Englisch (man braucht da offenbar nicht so viel... :) ) nach (numerisch) 60jährigem Gebrauch immer noch besser als mein Englisch. ;)
dxf2gcode schreibt aber auch Zeilen, die länger als 255 Zeichen sind. Die meckert linuxcnc dann als zu lang an.
Die ersten beiden Zeilen aus einer gestern abend entstandenen .ngc - Datei:(Generiert mit: DXF2GCODE, Version: PyQt4 Beta, Datum: $Date:: 2014-02-11 12:27:10#$)(Erstellt aus der Datei: F:/caddaten/misc/millthissimple03.dxf)(Zeit: Tue Oct 14 23:25:16 2014)G21 (Units in millimeters) G90 (Absolute programming) G64 (Default cutting) G17 (XY plane) G40 (Cancel radius comp.) G49 (Cancel length comp.)
G0 Z 15.000
Alles bis "comp.)" in einer Zeile. Mit UltraEdit sind die Kommentare schnell weggeputzt, aber für eine effiziente Umgebung wäre es nützlich, alle Kommentarfunktionen einfach deaktivieren zu können, und dann möglichst ein gcode-Befehl pro Zeile. Spart dann schon mal etwas vergleichsweise sinnfreie Arbeit.
Nebenbei - das erste im Kommentar stehende Datum - bezieht sich das auf den Scriptbau? Mein Systemkalender hat den Februar da nicht reinpraktiziert!
Die zugrundeliegende dxf-Datei hatte ich mit vcarve pro erzeugt. Das akzeptiert in der Eingabe zwar :e im Namen, schreibt dann aber an deren Stelle Tiefstriche, aka Viertelgeviert.
Mein Vorschlag, die mit MILL: verknüpfte Eigenschaft innerhalb von dxf2gcode in einem Auswahlfenster zu schalten, bleibt aktiv.
Back to english:
If I understand you and Tim right, changing MILL* to MILL: in the layernames in the dxf file should allow dxf2gcode to ackowledge that as a directive to submit the data to a tool compensatiion, right? I'll try that later today.
Robert, that blogpost is very informative. I think I've learned now that dxf2gcode does nothing but setting the tool compensation flag by G41 / G42 etc. for linuxcnc - which performs the real compensation then. Right?