Gcodetools - Inkscape's CAM extension
18 Sep 2012 15:12 - 18 Sep 2012 16:30 #24375
by 777funk
Replied by 777funk on topic Re:Gcodetools - Inkscape's CAM extension
Just edited post #24371 after more tests.
EDIT: Too weird... I just redid a few things in your code and now .NCD works but .nc doesn't.
Here's what I did:
I just changed the file types and put "Sources" in the _section since I saw other languages had Sources instead of Other.
I don't think changing "Other" to "Sources" did anything. But not sure there. Haven't tested it.
EDIT2: Some .nc files open as Plain Text and others as GCode. If I save one as GCode language it will later open with GCode.
EDIT: Too weird... I just redid a few things in your code and now .NCD works but .nc doesn't.
Here's what I did:
<language id="gcode" _name="Gcode" version="2.0" _section="Sources">
<metadata>
<property name="mimetypes"></property>
<property name="globs">*.nc;*.ngc;*.ncd;*NCD</property>
<property name="block-comment-start">(</property>
<property name="block-comment-end">)</property>
</metadata>
I just changed the file types and put "Sources" in the _section since I saw other languages had Sources instead of Other.
I don't think changing "Other" to "Sources" did anything. But not sure there. Haven't tested it.
EDIT2: Some .nc files open as Plain Text and others as GCode. If I save one as GCode language it will later open with GCode.
Last edit: 18 Sep 2012 16:30 by 777funk.
Please Log in or Create an account to join the conversation.
19 Sep 2012 10:28 #24411
by Nick
Replied by Nick on topic Re:Gcodetools - Inkscape's CAM extension
Hmmm... I'm totally confused.
If we
Create new file + save as ngc = Text file
Create new file + save file as .nc + save as ngc = Gcode languge
Create new file + save file as .c it becomes C + save as ngc = Gcode languge
It appears that it wont change file parsing type only if saving from the text file...
If we
Create new file + save as ngc = Text file
Create new file + save file as .nc + save as ngc = Gcode languge
Create new file + save file as .c it becomes C + save as ngc = Gcode languge
It appears that it wont change file parsing type only if saving from the text file...
Please Log in or Create an account to join the conversation.
13 Oct 2012 02:20 #25283
by 777funk
Replied by 777funk on topic Re:Gcodetools - Inkscape's CAM extension
In GEdit Is there a way to do math operations to say ALL Z-axis coordinates?
in other words shift all of the Z's up by a set amount?
in other words shift all of the Z's up by a set amount?
Please Log in or Create an account to join the conversation.
17 Oct 2012 11:40 #25401
by Nick
Replied by Nick on topic Re:Gcodetools - Inkscape's CAM extension
I'm afraid no.
But you can use Regular expression extension for that.
for example, change
Z([\-\d\.\s]+)
to
Z[#<zoffset>+[\1]]
and define #<zoffset> = 10 at the top.
Or you can use parameterize Gcode postprocessor from Gcodetools to add this parameters to Gcode automaticaly.
But you can use Regular expression extension for that.
for example, change
Z([\-\d\.\s]+)
to
Z[#<zoffset>+[\1]]
and define #<zoffset> = 10 at the top.
Or you can use parameterize Gcode postprocessor from Gcodetools to add this parameters to Gcode automaticaly.
Please Log in or Create an account to join the conversation.
15 Feb 2013 08:58 #30082
by andypugh
I have been trying to use gcodetools to create lathe G-code, and I don't seem to be able to figure it out.
I have a profile in Inkscape. X is vertical, Z is horizontal.
All I seem to be able to get is a profile in XY with several Z steps (not ideal for a lathe).
Could you possibly give a step-by-step of how to create lathe G-code from a profile in Inkscape?
(And does the G-code always contain Y coordinates? That seems wrong)
Replied by andypugh on topic Gcodetools - Inkscape's CAM extension
I've remade Inkscape plug-in and want to share it .
Lathe machining
I have been trying to use gcodetools to create lathe G-code, and I don't seem to be able to figure it out.
I have a profile in Inkscape. X is vertical, Z is horizontal.
All I seem to be able to get is a profile in XY with several Z steps (not ideal for a lathe).
Could you possibly give a step-by-step of how to create lathe G-code from a profile in Inkscape?
(And does the G-code always contain Y coordinates? That seems wrong)
Please Log in or Create an account to join the conversation.
- walt_scrivens
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
24 Apr 2013 06:26 #33103
by walt_scrivens
Replied by walt_scrivens on topic Gcodetools - Inkscape's CAM extension
I'm having a problem with area fill. I can get the area filled in properly with the Area tool, and the drawing looks correct. When I generate the gcode, it still looks good in inkscape, but in the actual .ncg file, some paths are repeated over and over - 55 times in the attached file!
I've been deiting the duplicate paths out with Gedit, but that's tedious and unnecessary. Any ideas what I might be doing wrong?
Walt
I've been deiting the duplicate paths out with Gedit, but that's tedious and unnecessary. Any ideas what I might be doing wrong?
Walt
Please Log in or Create an account to join the conversation.
24 Apr 2013 15:54 #33121
by Nick
Replied by Nick on topic Gcodetools - Inkscape's CAM extension
Did you fill the area with Offsets of the original path?
You should define correct "path width" Gcodetools adds (path width)/(tool diameter) paths with dinamyc offset. In fact this function is not the best choise. You can try Fill area with Zig-Zag or Spiral from Dev version, usualy it works better.
Offsets of the path is a quite complex task and some times some bugs appear. Even poverful CADs have problems with offsets, I saw bugs in Rhinoceros after offsetting paths.
You should define correct "path width" Gcodetools adds (path width)/(tool diameter) paths with dinamyc offset. In fact this function is not the best choise. You can try Fill area with Zig-Zag or Spiral from Dev version, usualy it works better.
Offsets of the path is a quite complex task and some times some bugs appear. Even poverful CADs have problems with offsets, I saw bugs in Rhinoceros after offsetting paths.
The following user(s) said Thank You: walt_scrivens
Please Log in or Create an account to join the conversation.
- walt_scrivens
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
28 Apr 2013 18:32 #33322
by walt_scrivens
Replied by walt_scrivens on topic Gcodetools - Inkscape's CAM extension
Thanks, Nick.
I tried Spiral, and it worked well, but with a lot of wasted motion going back to the start of a cut for a second pass (to reach final cut depth). I'll try Zig-Zag next, that might yield better results.
You mention a Dev version. I'm using 1.7 which I thought was the latest released version, although it differs significantly from the tutorials. As I gain more experience I hope to be able to help with writing/editing the tutorials. Should I be using an earlier version? I'm an old hand at computers in general but this is my first venture into CAD/CAM.
Thank you for a wonderful piece of software
Walt
I tried Spiral, and it worked well, but with a lot of wasted motion going back to the start of a cut for a second pass (to reach final cut depth). I'll try Zig-Zag next, that might yield better results.
You mention a Dev version. I'm using 1.7 which I thought was the latest released version, although it differs significantly from the tutorials. As I gain more experience I hope to be able to help with writing/editing the tutorials. Should I be using an earlier version? I'm an old hand at computers in general but this is my first venture into CAD/CAM.
Thank you for a wonderful piece of software
Walt
Please Log in or Create an account to join the conversation.
29 Apr 2013 15:05 #33370
by Nick
Replied by Nick on topic Gcodetools - Inkscape's CAM extension
Yes 1.7 is the latest released version. But we have improved version that is in the development. We just have no time to make a new release.
You can find dev version in the bazaar repository bazaar.launchpad.net/~gcodetools.team/gcodetools/develope/files
then create inx files by
python create_inx.py
and install the extension as usual.
Dev version has some new features and bug fixes.
You can find dev version in the bazaar repository bazaar.launchpad.net/~gcodetools.team/gcodetools/develope/files
then create inx files by
python create_inx.py
and install the extension as usual.
Dev version has some new features and bug fixes.
The following user(s) said Thank You: jpka
Please Log in or Create an account to join the conversation.
Moderators: Skullworks
Time to create page: 0.082 seconds