# "Simple DXF" CNC exporter

**URL:** <https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725>\
**Category:** Extensions\
**Tags:** import, export\
**Created:** [February 19, 2019, 8:13pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725 "2019-02-19T20:13:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanT](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/iant/32/92023_2.png) [@IanT](https://forums.sketchup.com/u/IanT)\
**Post date:** [February 19, 2019, 8:13pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/1 "2019-02-19T20:13:31Z")

</div>

Continuing the discussion from [.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/36):

I spoke to Gkernan privately about putting this thread together and he agreed with the idea. I hope I haven’t made a pigs ear of it.

Cabmaker32 link for “Simple DXF” [Download | CabMaker32](https://cabmaker32.com/products/)

SketchUcation link for (with video) for “Simple DXF” [GKWare\_Simple\_DXF | SketchUcation](https://sketchucation.com/plugin/2105-gkware_simple_dxf)

It’s difficult where to start this thread as information about the plugin is scattered around the forum in several places. But, I thought it would be an idea to start a thread devoted to it now that the author @gkernan is planning on developing it further. Where users can ask questions and provide feedback and suggestions in one place rather than in the other threads which discuss the problems it solves. Gkernan could also post updates here and tutorials or tips for the plugin.

“Simple DXF” is a DXF exporter for SketchUp that solves the issues of certain users having Arcs mirrored for reasons unknown in their CNC CAM software upon import. It plays nice with CNC CAM software. It were originally brought about from the problems outlined in this thread by several users…

> [@Polylines with real arcs for CNC Router?](https://forums.sketchup.com/t/polylines-with-real-arcs-for-cnc-router/64342):
>
> Hello, my problem is as follows. I would like to send 2D shapes that have arcs for rounded corners to a CNC router for cutting. For simplicity imagine im using a single object whose shape is a square with 4 arcs making up the rounded corners. If i draw the rounded square in SU and make it into a group or component and then send it to a CAD/CAM software called Torchmate, then after applying a male toolpath i wind up with 8 different toolpaths - 4 for the edges and 4 for the corners, rather than…

Another user more recently reported the same issue in the first mentioned thread above…

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350):
>
> Exporting a tool path in 3D .dwg from plan view, parallel projection, lines only, outputs with some of the curves in reversed orientation. I remember this was solved at one point in the past but I can’t find the link right now. I believe it ended up having something to do with curves being left to right or right to left. Anyone remember what the annoying cause of this behavior is and how to correct it?

The discussion once again turned to “Simple DXF” being a useful solution posted by myself, then the author Gkernan posted with plans of further development and the topic begins to swing. This discussion is a follow-on from there…

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/36):
>
> FWIW I just want to show the difference using the Gkernan “Simple DXF” plugin on the original SKP file I created. It imports straight into my newer CAM software without the issue, the singular entities are now joined as toolpaths and they have a start-point assigned complete with cut direction. (shown by the triangles)
> 
> [![GKERNAN](https://global.discourse-cdn.com/sketchup/original/3X/8/9/8986966d3644c681471fe415f3a6970468ac3b03.jpeg)  
> GKERNAN.JPG786×784 24.8 KB  
> ](https://global.discourse-cdn.com/sketchup/original/3X/8/9/8986966d3644c681471fe415f3a6970468ac3b03.jpeg)

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/37):
>
> Ian thankyou for your kind words.
> 
> I developed this plugin specifically to provide solutions for CNC industry such as CNC Routers. The next version of SimpleDXF will allow for nested components.
> 
> I have brought up these issues with Trimble - but it seems to have fallen on deaf ears.

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/38):
>
> 👍 Glad to hear this.

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/39):
>
> I’m also working on some additional buttons that will help. One of them is a flattening button that will take a bunch of faces and create new faces where their planes are perpendicular to the Z axis. It will also lay it out on a grid of your choosing.
> 
> Another button will glue all edges into a continuous polyline. Also known as weld.
> 
> Please provide me with additional requests and suggestions.
> 
> I have read that documentation would be helpful and also perhaps a few more videos.

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/40):
>
> You may have resolved the nesting issue you and I discussed awhile back…but if no…perhaps this could be overcome too.
> 
> Thanks,  
> Charlie

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/41):
>
> Yes version 1.0.3 handles the flips. However directionality may not be what you expect.

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/42):
>
> I assume you mean tool direction?

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/43):
>
> Yes - However - you can force it by exploding and by re grouping and then reverse face if necessary.

> [@.dwg export curves are reversed](https://forums.sketchup.com/t/dwg-export-curves-are-reversed/88350/45):
>
> Another reason I created SimpleDXF is that I wanted to avoid the excess baggage that the newer autocad versions give us when you want CNC compatible DXF’s
> 
> My DXF was about 6K for a complicated part. The built in DXF export from SU was about 6 Megabytes. For a decent size kitchen I produced around 270 DXF files adding up to 420 K and it took under 1 second.
> 
> With SU DXF export I had to choose each part one by one and export. After 10 minutes I had made a number of mistakes and then simply gave up.

---

<div class="post-metadata">

**Author:** ![IanT](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/iant/32/92023_2.png) [@IanT](https://forums.sketchup.com/u/IanT)\
**Post date:** [February 19, 2019, 10:18pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/2 "2019-02-19T22:18:42Z")

</div>

@gkernan The flattening button sounds really useful, I look forward to that.

I mentioned it before but documentation would be good. Videos for more complex scenarios and using layers for operations in your experience would be useful too.

I wonder if you could change the starting point for an operation? Although I could do this in the CAM would that be something worth looking into?

---

<div class="post-metadata">

**Author:** ![mpoole32](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mpoole32/32/151763_2.png) [@mpoole32](https://forums.sketchup.com/u/mpoole32)\
**Post date:** [February 19, 2019, 10:41pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/3 "2019-02-19T22:41:21Z")

</div>

This issue with arcs\cutting direction and g-code has existed as long as cad programs have existed. I first dealt with this issue in version 9 of AutoCAD back in the late 80s and the fix back then was a lisp routine called reverse poly.

There are many details in cad programs that can cause the generation of bad part geometry required by programs that write g-code. Bad arc\circles in some cases is the issue but most of the time it has to do with the creation order of lines and arcs that make up part geometry.

Post processors, (programs that write g-code) get their directionality or what we think of as cutting direction from the order entities are created in the drawings. There are multiple factors that influence entity creation order but now that Garry has written Simple DXF there’s no reason to think about this.

After you create a part dxf with Simple DXF you can re-import it and will see a leader with either CW or CCW to signal the cutting direction. If you need the opposite from what Simple DXF wrote the first time, simply flip the face and then re-export the part and this will reverse the cutting direction.

As I wrote above, I first ran into this issue 30 years ago with AutoCAD. At some point I switched to TurboCAD which also had the same set of issues.

Sketchup with Simple DXF addresses all those many issues that have existed between CAD and CAM programs for years. You get the productivity Sketchup provides and exactly what other software needs to create accurate g-code.

 ![skp%20-%20SketchUp%20Pro%202019](https://global.discourse-cdn.com/sketchup/original/3X/b/2/b2b64ed78ef6c1aeb18f2f90f91d989453c557dc.png)

---

<div class="post-metadata">

**Author:** ![IanT](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/iant/32/92023_2.png) [@IanT](https://forums.sketchup.com/u/IanT)\
**Post date:** [February 24, 2019, 6:20pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/4 "2019-02-24T18:20:38Z")

</div>

@gkernan I’ve been successful with everything I’ve thrown at the exporter so far regarding arcs.

Today while doing a few practises with my CAM, I’m seeing some inconsistency with direction on the current example I’m working with.

[NOTES EXPORTER.skp](https://forums.sketchup.com/uploads/short-url/mTo54mZ1VdRmUidTby0Bq0kCrH4.skp) (1.4 MB)

Some of the “notes” outside paths have CW direction, but the normal face orientation applied to those should be giving CCW direction as per the others?

I realise that reversing the face will fix it but the others seem to be following the rule ok. I thought I’d share it for your interest. Perhaps it’s just the way I set it up?

---

<div class="post-metadata">

**Author:** ![gkernan](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gkernan](https://forums.sketchup.com/u/gkernan)\
**Post date:** [February 24, 2019, 7:20pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/5 "2019-02-24T19:20:09Z")

</div>

I know there is a combination of flip in 2 directions where I am not happy with the cutting direction. And as you say - you can always reverse the face.

I am digging into a number of improvements and might be able to solve this when I revisit it.

For Now I’m looking at:

1. Start of poly line indicator
2. Nested components / Groups
3. A configuration choice if you want the outermost container (group or component) transform to be applied.

I’ve determined that I’m going to have you place a pin where you want to the start of poly line to begin.  
At this time you need to apply it to the actual edge. I might be able to dig down and find it - but I’m only going down that strategy if it can be 100% correct.

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/5/a/5ae641993c7780a72b6da12582ede56385f36105.png)

---

<div class="post-metadata">

**Author:** ![IanT](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/iant/32/92023_2.png) [@IanT](https://forums.sketchup.com/u/IanT)\
**Post date:** [February 24, 2019, 7:34pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/6 "2019-02-24T19:34:56Z")

</div>

I like the fact that the DXF output can be imported straight back into the model for inspection and quickly adjusted if needed without the need for any other cad. It’s a nice feature where I can see the direction of everything in advance. Granted, the example I posted is bit more complicated than some examples I’ve seen but the plugin still produces good DXF for everything. I’ll just have to observe the directions and correct them as needed per file. I thought I’d show that happen anyway.

The startpoint addition looks good so far. It doesn’t always matter, but for some shapes (maybe text) it can have an effect on the cutting of the shape itself and have undesired results if a path is started in certain places. Also, with multiple cuts it shortens the amount of travel between cuts if you can place them strategically. I’m just thinking of different scenarios for it to be used.

---

<div class="post-metadata">

**Author:** ![gkernan](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gkernan](https://forums.sketchup.com/u/gkernan)\
**Post date:** [February 24, 2019, 7:40pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/7 "2019-02-24T19:40:53Z")

</div>

One obvious place is where you have a straight cut (dado). There is no face - so Start Point becomes extremely important.

---

<div class="post-metadata">

**Author:** ![endlessfix](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/endlessfix/32/148757_2.png) [@endlessfix](https://forums.sketchup.com/u/endlessfix)\
**Post date:** [March 2, 2019, 6:16am UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/8 "2019-03-02T06:16:49Z")

</div>

@gkernan . Ok, so I finally have a moment to test out the DXF exporter on some of the problem files I have. But currently the exporter crashes sketchup every time I press the export button, even just exporting a circle. I must be set up incorrectly. I’m using a trial of v103 on a Mac running Mojave. Am I missing something obvious? (it’s pretty late here).

---

<div class="post-metadata">

**Author:** ![gkernan](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gkernan](https://forums.sketchup.com/u/gkernan)\
**Post date:** [March 2, 2019, 6:25am UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/9 "2019-03-02T06:25:40Z")

</div>

We can look into this tomorrow. I am currently working on the next version which makes it easier to work with starting points etc.

Have you seen the videos?

---

<div class="post-metadata">

**Author:** ![endlessfix](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/endlessfix/32/148757_2.png) [@endlessfix](https://forums.sketchup.com/u/endlessfix)\
**Post date:** [March 2, 2019, 6:28am UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/10 "2019-03-02T06:28:37Z")

</div>

Thanks, I’m sure there is a simple reason. I was looking for a video for the exporter but didn’t see it, is it there with the others under tutorials? No rush, just still looking for a working pathway to get lines from my screen into a piece of steel of plywood. 😏

---

<div class="post-metadata">

**Author:** ![gkernan](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gkernan](https://forums.sketchup.com/u/gkernan)\
**Post date:** [March 2, 2019, 3:43pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/11 "2019-03-02T15:43:24Z")

</div>

Could you provide a Sketchup Model that crashes. I’d like to analyze it.

---

<div class="post-metadata">

**Author:** ![gkernan](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gkernan](https://forums.sketchup.com/u/gkernan)\
**Post date:** [March 5, 2019, 2:26pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/12 "2019-03-05T14:26:40Z")

</div>

I now have start of cutting path working. Who would like to try it out?

---

<div class="post-metadata">

**Author:** ![IanT](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/iant/32/92023_2.png) [@IanT](https://forums.sketchup.com/u/IanT)\
**Post date:** [March 5, 2019, 2:39pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/13 "2019-03-05T14:39:02Z")

</div>

One lab monkey right here ✋

---

<div class="post-metadata">

**Author:** ![gkernan](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gkernan](https://forums.sketchup.com/u/gkernan)\
**Post date:** [March 5, 2019, 2:41pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/14 "2019-03-05T14:41:33Z")

</div>

[GKWare\_Simple\_DXF\_v1.0.4.rbz](https://forums.sketchup.com/uploads/short-url/ajeXmYJ2n3sq9LxzcmpOZC49aQe.rbz) (113.1 KB)

---

<div class="post-metadata">

**Author:** ![IanT](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/iant/32/92023_2.png) [@IanT](https://forums.sketchup.com/u/IanT)\
**Post date:** [March 5, 2019, 4:46pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/15 "2019-03-05T16:46:00Z")

</div>

Are you able to assign the Startpoint to a Midpoint of an edge? I am able to get it on any Endpoint, but not Midpoints at present.

Although my newer CAM seems to compensate for the geometry, I think some CAM might have issues like this below. The ability to start the cut at a Midpoint would avoid the problem altogether?

(The radius of the cutter would of course be present in the actual cut piece corners)

 ![Capture](https://global.discourse-cdn.com/sketchup/original/3X/8/e/8e12606ee40323d3c8ffbc5e5d0127d3ecbb01ed.jpeg)

---

<div class="post-metadata">

**Author:** ![gkernan](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gkernan](https://forums.sketchup.com/u/gkernan)\
**Post date:** [March 5, 2019, 5:43pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/16 "2019-03-05T17:43:54Z")

</div>

Simply break a line into 2 separate lines

---

<div class="post-metadata">

**Author:** ![IanT](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/iant/32/92023_2.png) [@IanT](https://forums.sketchup.com/u/IanT)\
**Post date:** [March 5, 2019, 5:53pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/17 "2019-03-05T17:53:48Z")

</div>

Aha yes, good catch. From what I see it seems to be working well here in that case.

---

<div class="post-metadata">

**Author:** ![endlessfix](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/endlessfix/32/148757_2.png) [@endlessfix](https://forums.sketchup.com/u/endlessfix)\
**Post date:** [March 5, 2019, 6:51pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/18 "2019-03-05T18:51:10Z")

</div>

I’m sure I’m doing something wrong on my end because it crashes on a single circle as soon as I press the export button. I could not find the tutorial video for DXF exporter on your site, is it included in the other videos? With a link to the setup video the I’m sure I can get it running. I’ll include the file and crash code here in case it’s useful. Thanks.

[Circle.skp](https://forums.sketchup.com/uploads/short-url/8TwmVRs2aRzYT3sboAZdRGomhCj.skp) (1.7 MB)  
[SK crash.pdf](https://forums.sketchup.com/uploads/short-url/1SVbvMyYCKcbHpE8RjKABIsKeIm.pdf) (205.1 KB)

---

<div class="post-metadata">

**Author:** ![gkernan](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gkernan](https://forums.sketchup.com/u/gkernan)\
**Post date:** [March 5, 2019, 7:15pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/19 "2019-03-05T19:15:13Z")

</div>

It isn’t set up correctly.

You have raw geometry (circle) in the model.  
You must have an empty container that contains each group / component that contains geometry.

All I did was to select your geometry and make it a group named Circle Geometry just for clarity.  
Then I used a temporary line so I could select Circle Geometry and the line and make that into a group I name Main Container. Then I deleted the temporary line.

This exports just fine.

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/8/d/8d9ac11a95d0f064c49da93efc3f494c9a934597.png)

---

<div class="post-metadata">

**Author:** ![endlessfix](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/endlessfix/32/148757_2.png) [@endlessfix](https://forums.sketchup.com/u/endlessfix)\
**Post date:** [March 5, 2019, 7:28pm UTC](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725/20 "2019-03-05T19:28:33Z")

</div>

Thanks for your help. Hmmm… so the raw geometry needs to contained twice, in other words, nested at least once? So in theory this file should export, but it still crashes.

[Circle.skp](https://forums.sketchup.com/uploads/short-url/dCfLw8xSWl4bqxh3AVwrku5m2hD.skp) (1.7 MB)

 ![57%20AM](https://global.discourse-cdn.com/sketchup/original/3X/d/6/d63f37c09bbf60898c67f25d3e0e56d8ce8bd148.jpeg)

[Next page](https://forums.sketchup.com/t/simple-dxf-cnc-exporter/88725.md?page=2)
