Import/Export/Transfer

Clip Out

Source: https://gitlab.com/inklinea/clip-out

Inkscape Extension to clip a background image by object outlines then export to multiple png.

Supports:

The image to be clipped must be the last selected. An easy way to do this, is select all then shift & left click the image twice to make it the last selected. It does require that you have saved our svg file at least once before using (will not work on an unsaved svg).

grafik.png grafik.png

Example

grafik.png

grafik.png

DXF/DWG Importer

grafik.png grafik.png grafik.png

About

This is an extension which allows to import DWG and DXF files into InkScape (working with Linux and Windows). DWG files are getting converted into DXF and then the DXF gets processed into SVG. The SVG result will be pushed into InkScape. Because there are so much different DXF versions a lot of files fail with the default DXF import tool from InkScape. Other solutions are there. While making this extension i stumbled upon ezdxf library, which is a powerful python implementation to deal with AutoCAD DXF format really well. To support great variety there are options for pre-processing the data by filtering out entities, because some tools like sk1 UniConvertor fail to make an SVG from DXF if there occure entities which it cannot handle.

\*\*Belonging to your toolchain configuration beware. There can happen issues like:\*\*

Converters

The following conversion tools are integrated or used by DXF/DWG Importer:

  1. https://github.com/bjnortier/dxf (bundled)
  2. ODA File Converter (if you want to convert DWG to DXF or DXF to another DXF version) - this is not bundled with. You need to install it! For minimum stress with Linux, just use the AppImage version of ODA File Converter!
    • available for Linux and Windows - install if you want to import DWG or if you also want to re-convert DXF files (downgrading, repairing (auditing))
    • You might need to install a certain Qt framework version manually and to adjust the command in Linux system to make it work. Some details doing this are also included in plugin GUI. The installation files can be found at https://download.qt.io/archive/qt - install to /opt/ directory for example. Note that you need some free account for registering to continue the installation of Qt
vim /usr/bin/ODAFileConverter
#!/bin/sh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Qt5.14.2/5.14.2/gcc_64/lib/ #we add this line to satisfy the Qt framework location
SV_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/bin/ODAFileConverter_21.7.0.0:$LD_LIBRARY_PATH
/usr/bin/ODAFileConverter_21.7.0.0/ODAFileConverter "$@"
export LD_LIBRARY_PATH=$SV_LD_LIBRARY_PATH

grafik.png

How to test/use DXF/DWG Importer extension?

Q-CAD provides some example DWG files to download: https://www.q-cad.com/samples/autocad-2d/samples. You can process those files with the DXF/DWG extension to quickly check if you made proper configuration.

I tested some of them and they worked really well. Example:

Q-CAD Sample bjnortier sk1 UniConverter (with ezdxf preprocessing)

grafik.png

grafik.pngThe result looks really good but is inverted


grafik.png

grafik.png

with filtered entity of tye "ARC" because otherwise InkScape crashes. Result is inverted

grafik.png

Some entities like lines and images are missing

Why you did'nt put this extension into default menu?

Because we would need to delete the existing dxf_input extension which is still helpful too. Without deletion we cannot register .dxf with another plugin (at least it did not work for me)

Some more hints for ODA File Converter

C:\Program Files\ODA\ODAFileConverter_title 21.6.0\ODAFileConverter.exe --help

grafik.png

Further reading

Being constrained by proprietary software sucks. Please help to make import of DWG/DXF even more open. There are some good libraries to do this:

Note that the used DXF to SVG converters are mostly outdated. kabeja and sk1 UniConverter 1.1.X are in a high state of legacy.

Export selection as ...

Extension to export the current selection into different formats like SVG, DXF or PDF.

This extension is a modified version of the original source code. Original Source: https://github.com/mireq/inkscape-export-selection-as-svg

Usage from commandline:

inkscape --actions="select-by-id:object_id; verb:sk.linuxos.export_selection.noprefs" --batch-process input.svg

Important Notes

Example

Create some objects

grafik.png

Run extension and get the result

grafik.png

grafik.png

Guillotine Plus

Improved basic Inkscape guillotine extension → Added: DPI input to export window for Guillotine extension.

grafik.png

Please see Guillotine (Papierschneidemaschine / Segmentieren) on how to use Guillotine generally.

Import 3D Mesh

Import STL/PLY/OBJ/OFF Files and make some cool low-poly looking vector graphics out of it.

See also

grafik.png grafik.png grafik.png

Example

grafik.png

Inkcut

See USB-Anschluss und Inkcut Setup for more details about InkCut

grafik.png

J Tech Photonics Laser Tool

Source of documentation:

pip install svg-to-gcode

grafik.png grafik.png grafik.png grafik.png

For InkScape 1.0 you will need to remove all path transformation before using this tool!

 

JPEG Export

jpg, webp, png, tiff formats are supported natively since Inkscape 1.1; no need for this extension anymore

grafik.png

NextGenerator

This plugin replaces text strings and other XML data from a generic SVG template to make a set of parametric files for output. It replaces strings in template with data from a CSV file and exports to multiple file formats (png, svg, ps, eps, pdf). This can be useful for automatically generating conference badges and similar items.

Some additional hints:

  • link any image that you want to use as a placeholder (don't embed)
  • put the replacement images into the same directory as the placeholder, so you only need to replace the name (didn't work for full file paths, for some reason sed complained, even with backslashes and quotes (also without))
  • the CSV file must end with an empty line
  • Source of old documentation: https://www.rgb-labs.com/inkscape-161-generator-plugin-tip/
  • Source of new documentaion (Moini's Fork): https://gitlab.com/Moini/nextgenerator/-/tree/master/example
  • If you like to use symbols like & < > in your text you need to escape them in your CSV like this: "1. Stellvertreter &amp; Schriftführer" → this get's "1. Stellvertreter & Schriftführer"

Enter your parameters

We use https://gitlab.com/Moini/nextgenerator/-/blob/master/example data to test out the plugin

grafik.png

Create / adjust your input CSV file for replacements

example

name, occupation, bg_col, photo
"Ada Lovelace", Programmer, #3accd1, 1.png
"Alan Turing", Code Breaker, "#e78940", 2.png
"Linus Torvalds", "Kernel Developer, Linux Founder", #de88d9, 3.png
Tux, Mascot, #bed7ff, 4.png

Example output

According to your selected output format you will receive PNG, PDF or other files

grafik.png grafik.png grafik.png grafik.png

Open in Roland CutStudio

Installation notes can be found at Software Setup - Roland CutStudio

grafik.png 

grafik.png

Open in VisiCut

This extension will add or replace the current Inkscape canvas content in VisiCut instance. Documentation can be found at

This extension requires to install the VisiCut application itself → https://github.com/t-oster/VisiCut/releases. On Fedora it's easy to use the platform independent ZIP version (https://download.visicut.org). We just download, move to some system dir and add it to $PATH variable, e.g. in .basrhrc.

Output Pro for Inkscape

Output Pro helps implementing professional output of files for printing graphics.

Links:

Requirements

pip3 install PyQt5

grafik.png grafik.png grafik.png grafik.png

 

Paths to OpenSCAD

https://wiki.fablab-nuernberg.de/w/Ding:Zahnr%C3%A4der_mit_Inkscape#Werkzeug-Korrektur

grafik.png grafik.png grafik.png grafik.png grafik.png

Example

Draw a new gear

grafik.png

grafik.png

Union paths and fill the area

grafik.png

Save the file with a name

Run "Paths to OpenSCAD" Plugin

View the .scad (OpenSCAD)

and maybe export to STL manually, or do it automatically by the Inkscape Plugin

  1. Open

    grafik.png

  2. Rendering

    grafik.png

  3. Export

    grafik.png

    If you forget to fill in the area in InkScape, you will see it as follows:

    grafik.png

View the STL STL Export / 3D Print

http://www.freestlview.com

grafik.png

Slic3r STL Input

STL Sliced Import (by Slic3r). Supports OBJ/OFF/PLY/STL as input file formats. It requires OpenMesh:

Prepare to install openmesh

To run this extension you need to install OpenMesh bindings with python pip. When installing Paperfold by installing MighyScape, this will already be done for you on Linux systems. Else:

Ubuntu

sudo apt install cmake
sudo apt install g++
sudo apt install python3-dev
pip3 install openmesh

Fedora

sudo dnf install cmake
sudo dnf install g++
sudo dnf install python3-devel
pip3 install cmake
pip3 install pybind11
pip3 install openmesh

Windows

  1. Windows requires CMake executable

  2. Install MS Visual Studio Community Edition → If you receive an error like "NMake Makefiles does not support platform specification, but platform x64 was specified." In case the instalation fails you can also try to install precompiled Windows binaries from https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/OpenMesh

  3. Install openmesh bindings

    pip3 install openmesh

How it works

Warning: Requires Slicer 1.3.1-dev (the really latest build possible)

Examples

grafik.png grafik.png

Download Slic3r

You need the latest development version from https://slic3r.org/download. You can directly get them from https://www.dropbox.com/scl/fo/gxoj6ei7vt95p3ggzy9c6/AJBn6GpI4H-7kJbx_P8cZic/dev?dl=0&rlkey=usb5fvt9mhpqizm3269dhg036&subfolder_nav_tracking=1

Example to Import

grafik.png

Import Procedure

grafik.png grafik.png

grafik.png

Svg2Shenzhen

Source of documentation: https://github.com/badgeek/svg2shenzhen

grafik.png 

grafik.png