How to generate G-CODE in Inkscape for DIY CNC Machines


What is G-Code ?

G-code is a language in which people tell computerized machine tools how to make something. The “how” is defined by instructions on where to move, how fast to move, and what path to follow. The most common situation is that, within a machine tool, a cutting tool is moved according to these instructions through a toolpath and cuts away material to leave only the finished workpiece. The same concept also extends to noncutting tools such as forming or burnishing tools, photoplotting, additive methods such as 3D printing, and measuring instruments.


How to generate G-code in Inkscape

Link to download Inkscape Software


As you download this software you need to add one Extension for G-code save as option
This library is Makerbot unicorn Gcode Extension
Click here to download Extension
After downloading the Extension file
Unzip it and Copy the “SCR” folder
Now open the directory of Inkscape (right click on icon >properties>open file location)
then search for Share folder open this folder
Now look for Extension folder open this folder and past the “SCR” folder here.


Now you can have G-code save as option


Without G-CODE Extension



After adding G-CODE Extension



Let see how to generate G-CODE


  1. Open the inkscape software
  2. Set the page size as per our plot are for our mini CNC Machine 40 X 40 mm from Document properties (shift+ctrl+d)
  3. Now insert your image or text whatever you want to draw
  4. Then go to the PATH tab click on TRACE BITMAP (shift+alt+b) click on UPDATE and click on OK
  5. Now again select the image/text go to the PATH tab and click on OBJECT TO PATH (shift+ctrl+c)
  6. Then once again go to PATH tab lick on DYNAMIC OFFSET (ctrl+j)
  7. Now go to FILE tabe > Save as > give a name to you file choose Makerbot unicorn Gcode file extension to save the gcode file
  8. Its done your file is saved and ready to load to machine

    How to add G-Code extension in Inkscape for MINI DIY CNC Machine


Low cost PCB on PCBWay - only $5 for 10 PCBs and FREE first order for new members

PCB Assembly service starts from $88 with Free shipping all around world + Free stencil 

PCBWay 2nd PCB Design Contest



Hobbiest Electrical DIY project passionate

21 Responses

  1. Αfter checking out a handful of the articles on your web site, I honestly likе your way of blogging.
    I book marked it to my bookmагk site list and ᴡill be checkіng bacк in the near future.
    Please visit my web site too and let me қnow how you feeⅼ.

  2. Does your site have a contact page? I’m having a tough time locating it but, I’d like to send you an email.
    I’ve got some creative ideas for your blog you might be interested in hearing.
    Either way, great site and I look forward to seeing it grow over time.

  3. I got this website from my pal who informed me regarding this web site and at the moment this time I am visiting
    this web page and reading very informative posts at this place.

  4. Fine way of explaining, and fastidious article to take information concerning my presentation subject
    matter, which i am going to present in university.

  5. Fantastic goods from you, man. I’ve take into accout your stuff previous to and you’re just too excellent.
    I actually like what you have acquired here,
    really like what you’re saying and the way in which through which you
    assert it. You’re making it enjoyable and you still take care
    of to keep it smart. I can’t wait to learn much more from
    you. That is really a tremendous site.

  6. Grеat blog here! Also your site loаds up very fast!
    Whɑt host are yoս using? Can I get your affiliate link
    to your host? I wish my site lοaded up as fast as yours lol

  7. І am curious to find oսt what blog platfoгm you have been using?
    ӏ’m experiencіng some minor security issսes with my latest weЬsite and I would
    like to find something more secure. Do you have ɑny suggestions?

  8. I have read sߋ many articles about the blogger
    loveгs but this pieϲe of writing is in fact a pleasant piece օf writing, keep it

  9. inkscape say this:

    Traceback (most recent call last):
    File “”, line 108, in
    File “”, line 283, in affect
    File “”, line 102, in effect
    File “unicorn/”, line 230, in parse
    self.svgWidth = self.getLength(‘width’, 354) * 0.28222
    TypeError: unsupported operand type(s) for *: ‘NoneType’ and ‘float’

Leave a Reply

Your email address will not be published. Required fields are marked *

Enter Captcha Here : *

Reload Image

Post comment