Gcodetools - Inkscape's CAM extension

  • Nick
  • Nick's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
18 Sep 2012 14:20 #24369 by Nick
Replied by Nick on topic Re:Gcodetools - Inkscape's CAM extension
I've got almost the same behavior:

Create new file + save (as) 1.nc = Gcode

Create new file + save (as) 1.ngc = Text
Create new file + save (as) 1.ngc + close file + open 1.ngc = Gcode

So it appears that it looks only at the first option in the .lang file to determine language when saving the file.... But when you Open file it looks through all possibilities...

Please Log in or Create an account to join the conversation.

More
18 Sep 2012 14:42 - 18 Sep 2012 15:07 #24371 by 777funk
Replied by 777funk on topic Re:Gcodetools - Inkscape's CAM extension
I think you just figured it out. That seems to be the case.

EDIT: I'm not sure about that now. I have a bunch of very simple .nc files and just opened one and it defaults to plain text.
So open doesn't always work either.

EDIT2: I just put ONLY *.NCD in the file types and now it works. For some reason it's not liking the mulltiple file types.
Last edit: 18 Sep 2012 15:07 by 777funk.

Please Log in or Create an account to join the conversation.

More
18 Sep 2012 14:56 - 18 Sep 2012 15:01 #24372 by 777funk
Replied by 777funk on topic Re:Gcodetools - Inkscape's CAM extension
Here's what I'm using. It opens as plain text as the lang.

ok not letting me upload it as .nc. Weird for a CNC forum. I suppose I could change it to a .txt but all there is to it is basically a G90 and some G00 and G01 commands.
Attachments:
Last edit: 18 Sep 2012 15:01 by 777funk.

Please Log in or Create an account to join the conversation.

  • Nick
  • Nick's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
18 Sep 2012 15:04 #24374 by Nick
Replied by Nick on topic Re:Gcodetools - Inkscape's CAM extension
Just pack the file with tar.gz or zip, and forum will accept it.

Please Log in or Create an account to join the conversation.

More
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:
<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.

  • Nick
  • Nick's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
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...

Please Log in or Create an account to join the conversation.

More
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?

Please Log in or Create an account to join the conversation.

  • Nick
  • Nick's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
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.

Please Log in or Create an account to join the conversation.

More
15 Feb 2013 08:58 #30082 by andypugh
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.

    More
    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
    Attachments:

    Please Log in or Create an account to join the conversation.

    Time to create page: 0.096 seconds
    Powered by Kunena Forum