Inkscape: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
Undo revision 8223 by AndrewArmstrong (talk)
→‎DXF file export settings: figured out the issue with ROBO-MASTER tickbox
Line 68: Line 68:
* Fills
* Fills


The save options can also help a bit. The main thing is it '''must be set to mm''', and the tickboxes vary the output that is imported. This is a best default seem to be:
The save options can also help a bit. The main thing is it '''must be set to mm''', and the tickboxes vary the output that is imported. The best default seems to be just LWPOLYLINE ticked although you can see the results below.


[[File:Inkscape-DXF-save-2.PNG|none|left|The best options!]]
[[File:Inkscape-DXF-save-2.PNG|none|left|The best options!]]


The two tickboxes affect how the different paths of the file are split on save. If you've joined up all relevant sections as I had in this file which includes straight lines and curves, the two tickboxes together work a lot better:
The two tickboxes affect how the different paths of the file are split on save.


[[File:Inkscape-Imported-DXF-options.PNG|none|left|See below for which is which]]
[[File:Inkscape-Imported-DXF-options.PNG|none|left|See below for which is which]]


From left to right:
From left to right:
* No tickboxes - all paths are split (note that this may allow the laser to determine the quickest cutting path better).
* No tickboxes - all paths are split (note that this may allow the laser to determine the quickest cutting path better and most of the time is absolutely fine).
* ROBO-MASTER ticked - the splines (curved lines) are not split, straight lines are.
* ROBO-MASTER ticked - the splines (curved lines) are smoothed and kept linked - see the circle on this one is slightly "elongated" and not fully round!
* LWPOLYLINE ticked - the straight lines in the A's are not split anymore. In fact the A was created by a long use of the polygon tool in Inkscape and connected together at the end point and imported over perfectly.
* LWPOLYLINE ticked - the straight lines in the A's are not split anymore. In fact the A was created by a long use of the polygon tool in Inkscape and connected together at the end point and imported over perfectly.
* Both ticked - both the above occur. It isn't perfect (the curves are not joined to the straight lines even though they are in Inkscape!) but it saves a lot of messing around. Use this if possible.
* Both ticked - both the above occur. It isn't perfect due to the ROBO-MASTER setting making curves less curved however.


Note that in all cases the lines are not perfect (gaps where the splines and straights match up for instance). However after selecting the Tools -> Unite Lines option in Laser Cut provides pretty much the same cut (red line) and engrave (red area) for each one:
Note that in all cases the lines are not perfect (gaps where the splines and straights match up for instance). However after selecting the Tools -> Unite Lines option in Laser Cut provides pretty much the same cut (red line) and engrave (red area) for each one:


[[File:Inkscape-Imported-DXF-options-2.PNG|none|left|Final engrave]]
[[File:Inkscape-Imported-DXF-options-2.PNG|none|left|Final engrave]]
''Note how the 2nd and 4th picture the circle is not precise!''


The main issue with this design was there are 2 cut lines at the bottom lines of the top engrave; these seem to have been united properly on all designs.
The main thing to watch with this design was there are 2 cut lines at the bottom lines of the top engrave; these seem to have been united properly on all designs.


However more complex designs using same-colours for some overlapping lines my cause issues if the Unite Lines tool attaches the wrong nodes together, so the tickboxes would solve some of these.
However more complex designs using same-colours for some overlapping lines may cause issues if the Unite Lines tool attaches the wrong nodes together (How does it determine what gets linked at a junction?), so the tickboxes would potentially solve some of these.


[[Category:Laser Cutter]]
[[Category:Laser Cutter]]

Revision as of 16:28, 23 May 2014

Installation

Inkscape is a brilliant tool for creating SVG files to later use for laser cutting. The download page shows you the installer files for your system; note for a slight increase of speed for complex files on 64bit systems use the Partha builds.

Setup

Grid Setup

Inkscape by default works in pixels as the measurement; for the grids and page size. First of all to change the grids go to the Inkscape Preferences (File -> Inkscape Preferences), under the Grid section select "mm" instead of the default "px". This affects all new files, so select File -> New to open one, and go to View -> Grid to see it in action.

Set the grid setting to "mm"
Set the grid setting to "mm"

Document Settings and Templates

By default Inkscapes default file will be in pixels with an A4 portrait size. The easiest option to create one using millimetres is to select A4 Landscape from the New menu. You can also change a documents units setting any time under File -> Document Properties and selecting mm instead of px for the Default units.

Set the "Default units" setting to "mm"
Set the "Default units" setting to "mm"

You may also be interested in templates for various sizes of material. If you save these to your Inkscape templates folder (under Windows: %appdata%\inkscape\templates ) you can select them from the New menu. If you want to replace the default, rename one of them to "default.svg". This can save a lot of time when creating multiple items! These are all landscape, but you can save whatever basic SVG you want as a new template.

Once your document is set to MM it will import accurately into Laser Cut 5.3.

Usage Tips

Some tips for usage, a full tutorial may come later:

Coloured Paths

Inkscape colours are exported with the DXF which can be used to mark areas for engraving, different powers or even different orders of cut. Make sure to have the colours match across everything of one type however - using the primary colours along the bottom can help.

See the tutorials on Laser Cut for how to use this powerful feature.

Area fills and Layers

You can fill-colour in areas (eg; to show engraving areas) which makes things easier to see, and use layers and transparency to show/hide or overlay different areas. These are all collapsed or ignored when exporting to DXF, which is useful.

Area fill colour also helps determine if a path you've created is really a completed one. A good engrave area is a fully contiguous single line which is joined up to itself, although the DXF export splits the continuous line into one line with two end points which is easily fixed in Laser Cut.

Paths only!

When finishing a file ready to export select the entire document and go to Path -> Object to Path. The only thing a laser understands is paths (lines) and this may catch any you missed if converting an image file over; objects are not supported.

Leave mess in

You can leave in the SVG embedded images (eg; jpegs you are tracing) and the DXF file will simply exclude them when it is created. You can check the import in the Laser Cut demo or by opening the DXF file again with Inkscape.

DXF file export settings

You must save what you want in the DXF file format. This format is not as reliable to re-edit so keeping the original SVG is recommended, use File -> Save As Copy to do an "export" to DXF:

The correct save option
The correct save option

The DXF file exports:

  • Paths (lines created in your file)
  • Colours of paths

It will exclude:

  • Embedded images
  • Layers
  • Transparencies
  • Fills

The save options can also help a bit. The main thing is it must be set to mm, and the tickboxes vary the output that is imported. The best default seems to be just LWPOLYLINE ticked although you can see the results below.

The best options!
The best options!

The two tickboxes affect how the different paths of the file are split on save.

See below for which is which
See below for which is which

From left to right:

  • No tickboxes - all paths are split (note that this may allow the laser to determine the quickest cutting path better and most of the time is absolutely fine).
  • ROBO-MASTER ticked - the splines (curved lines) are smoothed and kept linked - see the circle on this one is slightly "elongated" and not fully round!
  • LWPOLYLINE ticked - the straight lines in the A's are not split anymore. In fact the A was created by a long use of the polygon tool in Inkscape and connected together at the end point and imported over perfectly.
  • Both ticked - both the above occur. It isn't perfect due to the ROBO-MASTER setting making curves less curved however.

Note that in all cases the lines are not perfect (gaps where the splines and straights match up for instance). However after selecting the Tools -> Unite Lines option in Laser Cut provides pretty much the same cut (red line) and engrave (red area) for each one:

Final engrave
Final engrave

Note how the 2nd and 4th picture the circle is not precise!

The main thing to watch with this design was there are 2 cut lines at the bottom lines of the top engrave; these seem to have been united properly on all designs.

However more complex designs using same-colours for some overlapping lines may cause issues if the Unite Lines tool attaches the wrong nodes together (How does it determine what gets linked at a junction?), so the tickboxes would potentially solve some of these.