"Simple DXF" CNC exporter

This is the fixed Circle.skp and the dxf.

So far it is only you that has reported a crash. But to be fair - the majority of CNC users work on Windows platforms as do I.

Procedure is to select the part - and choose Simple DXF export and give it a file name. Then choose Simple DXF import and bring it back into sketchup;

circle.dxf (392 Bytes)
Circle.skp (15.8 KB)

That works fine for me as it is. (Windows 10)

garry,

tried to test on my mac, for you, but I may have changed my hard drive since the last licence you sent…

Web service error code: -25, error user registered on another computer . Please notify CabMaker32.com.

john

OK, so perhaps the Mac version is not working. When you say “choose” simple DXF export, do you mean press the export button or is there another way to initiate the export. I have a small floating toolbar on my screen with two buttons, one import and one export, I’ve been selecting the object and pressing the export button. It does not ask me for a filename or location, it comes up with a dialogue box that says I have 4 days left, and when I press “OK” to clear the dialogue box skethup crashes.

To be clear, I do not need this Circle file, it’s just one that made to help testing the export function. Thanks for sending it but not necessary.

John,

I reset your account - please try again.

Garry

yep, reset worked, but instant crash…

@Barry can someone have a look at Crash Report #1968?

garry, if you email, on my private email you have, the unencrypted version I could look for the issue easier…

there’s not even a Ruby Console error as it’s an instant crash, before the save dialog appears…

john

@tt_su,
I narrowed down this ‘mac’ crashing to the wildcard * in the savepanel.

in my tests Crash Report #2083 was caused using the API example with the wildcard added…

path_to_save_to = UI.savepanel("Save Image File", File.expand_path("~/Documents"), "|JPG|*.jpg||")

EDIT: the UI.openpanel works with same formatting…

john

Thanks John for locating that bug which appears to affect only the mac.

I have added a Flatten button to this version.

GKWare_Simple_DXF_v1.0.5.rbz (118.0 KB)

1 Like

The 4th button (from the left) is the new Flatten button.

image

Here is a truck bumper. The bottom image has a few flaws that I cleaned up. It is all geometry without groups and each part is 1/8" thick (some solid - most not)
So I selected just the visible surfaces for 1/2 of the bumper and pasted it top image

I made a copy and 1 bye 1 I double clicked each surface and turned the selected geometry into a group.
I then ran Flatten and then organized the parts.

I reversed face for the cutouts and then ran Export and then Import

1 Like

Here is a video

Garry, the extension is coming along nicely. I’ve just had a chance to try the flatten with a little something and I’m getting some weirdness with the Groups falling at different heights and not on the ground plane. Not sure if that is me or not.

File attached for your interest: 5_TESTER_IanT.skp (155.5 KB)

A little thought too. It would be good if the Groups dropped somehow organised laid out, with a set distance between them, rather than moving them manually into position. Though I imagine that would be intricate to figure out.

Ian - Just click the button a couple of times and you should see everything settling to z = 0

Yep that’s got it, thanks.

Putting the new Flatten and Startpoints features into a little tester…


Bring the DXF into CAM and apply some quick toolpaths and it’s rolling, SketchUp to DXF polylines with true Arcs and user defined Startpoints…

3 Likes

Ian, looks good. I see that you created an approximate ellipse using 4 arcs. Was that hit and miss? Or did you do some math or derive the information from a table?

No math involved with that, I think I just drew 2 small circles top/bot and then used the arc tool to create a tangent arc for the sides using the circles endpoints to inference to. Repeat for the other side and delete the unwanted inner circle parts, which were then transformed to arcs.

That’s how I think I did it from memory, it were just to try it out really.

Ian - I can see that it is tangental - another way is run a line straight line and you can see the radius points

1 Like

I tried scaling a circle before to create “oval” shapes. The trouble with that is because the circle is still essentially a circle it exports as the original circle if I remember rightly. If you then explode the scaled circle it of course becomes segmented. I remember having a play with that at some point.

Expanding a little from above to question my curiosities:

When a Circle is scaled it becomes a Curve in Entity info…

When that Curve is exported with “Simple DXF” it is returned to the original circle of accurate size, as I thought. Interesting…

Stretched circles will be proper if you use a component and then Blocked Inserts for DXF. However, your CAM may not support it.

Additionally - I’ve got CAM’s that do not support True Ellipsis.

No, my CAM doesn’t support components from examples I’ve tried so far.

To be honest I don’t even think it’s an “issue” as such with the Scaling. It were more of a case of asking myself why I automatically drew the “ellipse form” you mentioned earlier using Arcs.