Computer-aided manufacturing (CAM) software is a key part of the process to create or embellish an object with a CNC machine. The CNC process typically consists of creating a design, setting up that design to be cut, and cutting it. That second step is what CAM is all about.

CAM is the process of setting up your tool and toolpath to generate G-code that your machine can interpret and use to cut, mill, or engrave the desired shape. In the CAM process, you need to define the dimensions of your cutting surface, establish the tool your machine will use during the cutting process, and finally, set the toolpath your machine will follow as it cuts. This includes setting up factors like speed, depth, and number of passes, among others.

Typically, to make a piece using a CNC machine (e.g. a laser cutter or engraver), you first have to create your design in CAD software – for example, AutoCAD or Inventor. Once that’s done, you export it to software that specializes in (or at least supports) CAM, like Fusion 360. However, in vector-drawing programs like Inkscape, you get the option to prepare the CAM process directly in your drawing software.

In this article, we’ll take you through the process to prepare a drawing for laser cutting or engraving using the Inkscape laser plug-in, which means your file can be prepared for machining all in one program!

Back to Contents

Inkscape Laser Plug-in: Tutorial

What Is Inkscape?

Inskcape is a popular software for design in CNC
Inskcape is a popular software for design in CNC (Source: Lauren Fuentes via All3DP)

Inkscape is a free drawing software that’s available for Linux, Windows, and MacOS. Inkscape can import and export raster files such as PNG or JPEG, but its primary purpose is for creating and editing vector graphics. It’s a popular tool among CNC machine users, not just because it’s free, but also because vector graphics are the preferable method of working when creating 2D designs.

Another advantage is that Inkscape is open source, allowing third parties to develop, use, and distribute plug-ins that expand the functionality of the program. Such is the case of the Inkscape Laser Tool Plug-in, which allows you to prepare the CAM process for laser cutting and create the necessary G-code directly in Inkscape, eliminating the need to export your drawing and import it into different software.

Back to Contents

Advertisement
Advertisement
Advertisement
Inkscape Laser Plug-in: Tutorial

Installing the Plug-In

Stable and Beta releases are available from the JTP website
Stable and Beta releases are available from the JTP website (Source: J Tech Photonics)

The plug-in was developed by J Tech Photonics, and it’s available for download from their website, although the latest updates will usually be found on GitHub. It’s important to note that to upgrade to a newer version you must uninstall any older versions before installing the newest. You also have to take into account which version of Inkscape you have to select the correct version of the plug-in to install.

Before installing the plug-in, make sure Inkscape is closed. After downloading the ZIP file of the correct version, extract the contents and save them to Inkscape’s installation folder by following the path from the Inkscape program file “Inkscape > share > inkscape > extensions”. Once you’ve pasted the plug-in files there, the next time you open Inkscape, the plug-in will appear in the “Extensions” tab on the menu bar.

Back to Contents

Advertisement
Advertisement
Advertisement

Tutorial

The process to create a toolpath is pretty much the same regardless of the design you’re working with, so whatever you want to cut and engrave, the basic steps will be the same. For our example, we’ll use a simple shape and some text to illustrate how to take these common design elements from vector to G-code for laser cutting. An important detail to keep in mind is that the plug-in only works with SVG files, so if the design you want to cut wasn’t created in Inkscape, you’ll need to convert it to this format first.

In the sections below, we’ll take you through how to verify your drawing will be correctly cut, then how to convert it from a drawing to a path that can be followed. We’ll also look at how to use the plug-in and the optimal settings for laser-cutting success.

Back to Contents

Advertisement
1
Inkscape Laser Plug-in: Tutorial

Setting Your Stock

This tutorial will teach you to create a toolpath inside Inkscape
This tutorial will teach you to create a toolpath directly in Inkscape (Source: Lauren Fuentes via All3DP)

Before getting into the CAM process, it’s important to make sure the drawing is made in such a way that you’ll get the desired result. For this reason, let’s start by checking out the basic CAM settings.

When using the plug-in, the program interprets the bottom left of the drawing space as the 0,0 coordinates of your machine, so you need to be careful of where on the page your drawing is located. We recommend doing the following:

  1. After creating or importing your drawing, add a surrounding rectangle with the dimensions of your slab of wood (or other material to be cut) so that you can locate where on the surface you want the drawing to go.
  2. Go to “Edit > Resize Page to Selection” to reduce the size of the drawing space to the size of your slab of wood.
  3. Delete the rectangle that you just drew, and you’re set to go!

Back to Contents

Advertisement
Advertisement
Advertisement
2
Inkscape Laser Plug-in: Tutorial

Importing Images

Make sure all the traces in your drawing make sense in a physical context
Make sure all the traces in your drawing make sense in a physical context (Source: Lauren Fuentes via All3DP)

It’s also possible to import a raster image rather than designing an illustration from scratch. You just have to take into account that it should have good contrast and quality so that it can be properly interpreted by the software.

  1. To convert an image into an object that can be cut, go to “Path > Trace Bitmap…” in the top menu. This will convert your image to solid vector objects.
  2. To verify that your image doesn’t have additional lines and that Inkscape is selecting the correct lines to cut, you can check the outlines. To do this, go to “Fill and Stroke” which you open with the hotkey “Shift + Ctrl + F”.
  3. Select a null Fill and a solid Stroke paint. This will show you what the software is considering to be the outer lines of your shape.

Solid color in a shape means the laser will engrave the whole area, while having only the outline and no infill will obtain an outline when laser cutting. For example, if you were to cut the ALL3DP text pictured above, inside sections of the letters, such as the letter ‘D’, would have to be deleted. This is because when you cut through the exterior, those sections would just fall off!

Back to Contents

Advertisement
Advertisement
3
Inkscape Laser Plug-in: Tutorial

Creating a Path

Group the objects to create one path for all of them
Group the objects to create one path for all of them (Source: Lauren Fuentes via All3DP)

Creating a path means the object will stop being represented as only a drawing. It will now have mathematical properties, like direction and size, that can be interpreted by CAM software. Depending on the number of objects in your scene, you may have to do an additional step before you create the path.

If you have multiple objects you want to cut using the same setup, you have to group the objects first. This will make them behave the same, and the CAM process will be done with the same settings for all objects. This is important because grouping them will also create a path from one object to the other – in other words, coordinates of translation between objects.

  1. If you have multiple objects you want to cut using the same set up, once they’re drawn, go to “Object > Group” (or “Ctrl + G”) in the menu.
  2. Once the objects are grouped, or if you only have one object, simply select the object and go to “Path > Object to Path” to create a toolpath. This will create one cutting path for the object or group of objects.

Back to Contents

Advertisement
Advertisement
4
Inkscape Laser Plug-in: Tutorial

Opening the Plug-In

You can find the Plug-in in the extensions section
You can find the Plug-in in the extensions section (Source: Lauren Fuentes via All3DP)

Now that the program can interpret the drawing as a set of coordinates, it’s time to use the plug-in to convert this information into the G-code your laser cutter will follow.

  1. On the menu, under “Extensions”, go to “Generate Laser Gcode”. It will show you that the J Tech plug-in has been added.
  2. Once selected, a dialog box will open where you can set up your laser cutter.

Aspects like laser power or laser speed will depend on your machine and on the type of cut you want – for example, if you want to engrave or to cut through. These are things you should already know from previous experience with your machine, but if you don’t, start by running some tests to try different intensities and speeds to learn how your laser works.

Back to Contents

Advertisement
Advertisement
Inkscape Laser Plug-in: Tutorial

Step 5: Plug-In Settings

The plug-in has as the basic settings for laser cutting
The plug-in has all the basic settings for laser cutting (Source: Lauren Fuentes via All3DP)

Here are some recommendations to take into account while setting up the laser cutter:

  • It’s important to remember that a laser cuts right down the middle of the indicated path, in contrast to, for example, a mill, which would cut from a side.
  • If you want to engrave rather than cut through, take care to use a lower intensity and a smaller number of passes.
  • You can customize the Laser On and Off G-code commands, in case your firmware uses different commands from the ones indicated by default.
  • The maximum laser power depends on the capacity of your laser.

Then, the final step is to indicate the filepath of the folder where your G-code will be stored. You can’t browse for it, so you have to go into your explorer and copy the folder’s address. Make sure the live preview is selected, then click on Apply. You’ll be able to see a preview in Inkscape of the toolpath your machine will follow.

If you’re satisfied with the path traced by the Inkscape laser plug-in, you’re done! You’ve successfully created the G-code for your design using the Inkscape laser extension, and you’re ready to send the file to your machine.

Back to Contents

Advertisement
Advertisement

License: The text of "Inkscape Laser Engraving Plug-in: Tutorial for Beginners" by All3DP is licensed under a Creative Commons Attribution 4.0 International License.

Stay informed with notifications from All3DP.

You get a notification when a new article is published.

You can’t subscribe to updates from All3DP. Learn more… Subscribe to updates

You can’t subscribe to updates from All3DP. Learn more…

Advertisement