# 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="<https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5WI6WQAfwHoPJ07M5J%2F-M5WIS-7bjeB5o9pFCP2%2FRotrics%20Drawing%20Extension%20for%20Inkscape.zip?alt=media&token=83c3b7bd-97d4-4375-bc18-77e10428b0c7>" %}
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;

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5V5srHX2Oc2aDc0MXT%2F-M5VYAHV4uZcYjwRHMIt%2Fimage.png?alt=media\&token=47418585-2e30-4ae7-a9fb-74bd97f24526)

\*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**

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MG3J91xUelSqHyCJyIe%2F-MG3U-JidvqApgP14ZVz%2Fimage.png?alt=media\&token=83f51aa0-398e-4912-a9ce-3387c5253655)

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MG3J91xUelSqHyCJyIe%2F-MG3UEMWu9E0YP632LeV%2Fimage.png?alt=media\&token=1013b97c-f8b5-49d4-9198-20b9f8787b82)

{% 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="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5VbAkY3gh63te1ZOfd%2F-M5VdfEI5ljo7VRglljR%2Fimage.png?alt=media&#x26;token=79164ad7-d5ca-4120-b309-6ccd288c7533" alt=""></div>

**4. Import your SVG file.**

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5VbAkY3gh63te1ZOfd%2F-M5VgwQodfjbIM4o5sJz%2Fimage.png?alt=media\&token=791c97c3-3107-49f4-86e7-d6e5ae1e144e)

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

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5VbAkY3gh63te1ZOfd%2F-M5Vg07KbSIWBImxJi8t%2Fimage.png?alt=media\&token=e5553e50-a5e8-4a32-9f27-949bcaf5bbee)

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

<div align="center"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5WI6WQAfwHoPJ07M5J%2F-M5WIkkxmASpdUfLa5ND%2Fimage.png?alt=media&#x26;token=d94d9e53-9100-47b7-91f5-d6173bb418a2" alt=""></div>

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

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5WCk0GNIF9KkKSG2o_%2F-M5WGJTXAWZUPFLRPgjB%2Fimage.png?alt=media\&token=9a5d1bf0-7996-473a-b5c8-7e0d78e95093)

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

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5WCk0GNIF9KkKSG2o_%2F-M5WGAvZOO92spvNFT2M%2Fimage.png?alt=media&#x26;token=8d56286e-4019-41ed-83ef-bb104026f00c" 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="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M5WCk0GNIF9KkKSG2o_%2F-M5WGk2xq8Pv61tVIypt%2Fimage.png?alt=media&#x26;token=8f00cbd8-4427-4221-95f0-6626cbb9c815" 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="<https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MYNcoMI3vYuVW3jHF-E%2F-MYNdqwpd9X326Xh6vVK%2FRotrics_G-code_Extensions_for_Adobe_Illustrator.zip?alt=media&token=98d866bb-ab28-49e9-b85f-c3b2444865f2>" %}
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="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M7N4atXAK59eK34pE73%2F-M7N5SkOdprfjeWmNXQH%2Fimage.png?alt=media&#x26;token=859c55e3-cac7-4b00-8c52-5a04a404f02a" alt=""></div>

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

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M7N4atXAK59eK34pE73%2F-M7N5YZunKEQ22_zLWpC%2Fimage.png?alt=media&#x26;token=5721b9bb-99a4-4fcd-99d1-5fa5a7dcfa23" alt=""></div>

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

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M7N4atXAK59eK34pE73%2F-M7N5jXkV2Ayj5zZUydw%2Fimage.png?alt=media\&token=bd05f52c-c81e-479c-ac10-b2ab8f53a404)

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

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M7N4atXAK59eK34pE73%2F-M7N5utq-zWZ_78a9WYb%2Fimage.png?alt=media\&token=81396894-eb3f-4d2a-afb3-9e4337dc4061)

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

<div align="left"><img src="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M7N4atXAK59eK34pE73%2F-M7N5ypWkwIZEKe_3H5l%2Fimage.png?alt=media&#x26;token=4b05735c-b6dd-4b2f-8bfa-cc5640b5ef01" 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="https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-M7N4atXAK59eK34pE73%2F-M7N64ttfwrpK2Uw83J4%2Fimage.png?alt=media&#x26;token=baf9eb1e-6288-4a23-aacd-b5e99deacb3a" 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.

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MEhD3wgtmKZgRiAdXYE%2F-MEh__AkuLoNWsVtj-vP%2Fimage.png?alt=media\&token=76c4193d-f55f-4a6e-b3a2-039e88bbd153)

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

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MEhD3wgtmKZgRiAdXYE%2F-MEhaVLTpkU98Q2r32sc%2Fimage.png?alt=media\&token=86f820e4-e3ec-4592-91c0-56eafc5aabb6)

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

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MEhD3wgtmKZgRiAdXYE%2F-MEh_iHGC2pRe8zCogtJ%2Fimage.png?alt=media\&token=3b6ee6ee-1e5d-4a09-b383-7b6f5d2b6b24)

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

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MEhD3wgtmKZgRiAdXYE%2F-MEh_nKQoUFknheOdFRd%2Fimage.png?alt=media\&token=f0e42177-701e-439c-ab91-b05e2dfd5f17)

![](https://2132465959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPFIBncU5l4J8tl5Yh%2F-MEhD3wgtmKZgRiAdXYE%2F-MEha3LsmtjPzBQ54VNY%2Fimage.png?alt=media\&token=08ff9314-d69d-484f-a367-9542735f70ef)

#### 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;
