> For the complete documentation index, see [llms.txt](https://manual.rotrics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.rotrics.com/get-start/drawing-and-writing/generate-writing-drawing-g-code-with-inkscape.md).

# Generate G-code with third-party software

## Inkscape

Inkscape is a free and open-source vector graphics editor. With abundant plugins, you can easily edit vector images, apply greyscale processing and etc.&#x20;

**Before starting, make sure you have installed Inkscape V0.92.5.**

Inkscape download link: <https://inkscape.org/release/inkscape-0.92.5/>

**1. Download the following Rotrics G-code extension for Inkscape V0.92.5**

{% file src="/files/-M5WIS-7bjeB5o9pFCP2" %}
Rotrics G-code Extension for Inkscape V0.92.5
{% endfile %}

{% hint style="warning" %}
:brain: **Note:** the extension only supports the older version such as V0.92.5, if you use the latest version, you may encounter the output error. &#x20;
{% endhint %}

**2. Install Rotrics G-code extension.**&#x20;

![](/files/-M5VYAHV4uZcYjwRHMIt)

\*For Windows, copy this extension to the "extensions" folder under Inscape installation directory, normally it should be:

`\Program Files\Inkscape\share\extensions`

\*For Mac OS, copy this extension to the "extensions" folder under Inscape installation directory, normally it should be:

`/Applications/Inkscape.app/Contents/Resources/extensions`

If couldn't find the extension folder,  you can find it by clicking **Edit > Preferences > System > Inkscape extension**

![](/files/-MG3U-JidvqApgP14ZVz)

![](/files/-MG3UEMWu9E0YP632LeV)

{% hint style="warning" %}
:brain: **Note:** Reboot the Inkscape software after installation.
{% endhint %}

**3. Open Inkscape, and create a new A4 page.**

<div align="left"><img src="/files/-M5VdfEI5ljo7VRglljR" alt=""></div>

**4. Import your SVG file.**

![](/files/-M5VgwQodfjbIM4o5sJz)

**5. Adjust image size, ensure it's within the A4 page.**&#x20;

![](/files/-M5Vg07KbSIWBImxJi8t)

#### 6. Adjust image position, and make sure image center position is X0 Y0,

<div align="center"><img src="/files/-M5WIkkxmASpdUfLa5ND" alt=""></div>

#### 7. Click **`Extensions->Export to G-code`**

![](/files/-M5WGJTXAWZUPFLRPgjB)

#### 8. Set DexArm write/draw configuration parameters.&#x20;

<div align="left"><img src="/files/-M5WGAvZOO92spvNFT2M" alt=""></div>

* Pen Height Down - writing/drawing start height, fill in the start height value&#x20;
  * G0 Z-
* Pen Height Up - pen rising height, 5-10mm higher than the start height value
  * G0 Z-

#### **9. Set G-code save directory and filename.**&#x20;

<div align="left"><img src="/files/-M5WGk2xq8Pv61tVIypt" alt=""></div>

#### 10. Click Apply to generate G-code.&#x20;

**\*Reference:** <https://jtechphotonics.com/?page_id=2012>

## Adobe Illustrator

&#x20;Adobe Illustrator is a vector graphics editor developed and marketed by Adobe Inc. It can generate writing/drawing G-code for drawing.&#x20;

**Before start, make sure you have installed Adobe Illustrator software.**

1\. Download the following Rotrics G-code Extension for Adobe Illustrator

{% file src="/files/-MYNdqwpd9X326Xh6vVK" %}
Rotrics G-code Extension for Adobe Illustrator
{% endfile %}

**2. Install Rotrics G-code extension.**

![](https://gblobscdn.gitbook.com/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5Uo-zfqyeUz5rXvsOy%2F-M5UoCn50F7oeT_lrDpi%2Fimage.png?alt=media\&token=83103e98-c07b-490d-9de9-d63401cbd7ea)

**3. Open Adobe Illustrator and create a new A4 page.**

**4. Import your SVG file.**<br>

<div align="left"><img src="/files/-M7N5SkOdprfjeWmNXQH" alt=""></div>

&#x20;5\. **Adjust image size, ensure it's within the A4 page.**

<div align="left"><img src="/files/-M7N5YZunKEQ22_zLWpC" alt=""></div>

**6.** Adjust image position, and make sure the image center position is X0 Y0.

![](/files/-M7N5jXkV2Ayj5zZUydw)

7\. Click **`File -> Scripts ->Export to G-code 1.1`**

![](/files/-M7N5utq-zWZ_78a9WYb)

#### 8. Set write/draw configuration parameters:

<div align="left"><img src="/files/-M7N5ypWkwIZEKe_3H5l" alt=""></div>

* **ON Command** - Pendown height, enter Rotrics Studio drawing height
  * G0 Z-
* **OFF Command** - Penup height, 5-10mm higher than the pen down height
  * G0 Z-

{% hint style="danger" %}
❗**Waring:** Pen up height must be higher than pen down height, otherwise, it might damage the robot arm. If there is any problem, please power off DexArm immediately.&#x20;

\*Don't set the other parameters.
{% endhint %}

#### 9. Set G-code file save directory and filename:

<div align="left"><img src="/files/-M7N64ttfwrpK2Uw83J4" alt="*add .gcode as suffix"></div>

#### 10. Click Generate G-code.&#x20;

## Send G-code with Rotrics Studio

#### 1. Open Rotrics Studio and connect with Dexarm.

![](/files/-MEh__AkuLoNWsVtj-vP)

#### 2. Switch to **Basic** panel, click HOME to initialize DexArm.

![](/files/-MEhaVLTpkU98Q2r32sc)

#### 3. Go to **G-code** on the right side.&#x20;

![](/files/-MEh_iHGC2pRe8zCogtJ)

#### 4. Import the G-code and select the **Pen Holder** module.&#x20;

![](/files/-MEh_nKQoUFknheOdFRd)

![](/files/-MEha3LsmtjPzBQ54VNY)

#### 5. Clic&#x6B;**`Start Send`**&#x62;utton, start writing/drawing.&#x20;

## Send G-code with touchscreen

1\. Copy the G-code file into th&#x65;**`g-code`**&#x66;older of touchscreen SD card.

2\. Connect the DexArm to touchscreen with a dual type-c cable.

3\. Click Basic->HOME to initialize DexArm.

4\. Click **`SD Card`**, choose your G-code, and click **`Start`** to start writing/drawing.&#x20;
