Polylines with real arcs for CNC Router?

Not necessary, thanks though.
I follow…I’ll just have to change my SU habits is all, or do my nesting in CAM program.

Charlie

This is essentially what I did. I just exploded the 3 outlined components prior to exporting the DXF. t1 is the shape of the part. The holes are all Component#1.

Got it…thanks.
I suppose I could break a SU cardinal rule…temporarily putting the holes on their own layer and the bracket perimeter as well…prior to exploding all…select by layer and group. (& then return geometry to layer zero to remain pure)

Charlie

You don’t need to explode the holes (Componet#1) nor the outer shape (t1)

When you explode Component#2 all the geometry remains within components - which means the DXF will have block inserts. Additionally since all the remaining components are the same as the ones within the “keep original” you can modify something and ALL the components will change at the same time.

Simple DXF version 1.0.2 is now available. Fixed a bug

.GKWare_Simple_DXF_v1.0.2.rbz (77.7 KB)

1 Like

What was it out of curiosity?

Thanks for staying with me on this…I’m usually pretty good at picking up the gist of things like this…today…not so much.
But…I’m sure it will be clear when I follow your instructions with the example model a little later on tonight.
Best regards,
Charlie

If the user closes the Save Dialog when saving a DXF instead of providing a file name there is a save error. You only see the error if you have the Ruby Console opened prior to Clicking the Export button.

Garry,
I think this is true, up and until one explodes Component#2 which is fine for me. I can one step undo this to preserve editing of nested components, as long as I perform the explode to all in one go…export…undo.

One more problem I ran into is some of my parts & holes move once exported.
I am sure this has to do with the fact they are “flipped” to nest on the 4x8 sheet.
If there is anything I can do to make them stay put…I’m all ears. (understanding the simple part of the extension)

please see .skp
GkWare_Expt_NestTest_07_23_2018.skp (270.4 KB)

Best regards,
Charlie

I can duplicate the issue if the holes and plates are components. Turns out the T can be rotated 180 degrees and that does work fine.

image

Also - if the holes and plates are groups then you can flip the parts.

I will look into this some more. I’m thinking that the transformation (during the flip) is getting missed.

Garry,
Thanks again…don’t go to a lot of trouble.
I may just go with my original thought of basically exploding all and grouping by layer after all…four step undo…instead of one…but all good…you have the arcs behaving nicely and that is the main thing.

Charlie

I spent just a bit of time with this. Essentially the part is getting rotated around the axis by 180 degrees instead of mirrored on the X axis. I modified 2 lines for each insert and got predictable results when importing into CAD.

I believe that all I will need to do is modify the DXF write and the DXF read to support flipping (or scaling -1)

This plugin should solve the problem:

1 Like

Simple DXF is now at version 1.0.5
It has a flattening button that handles angled parts

image

And it handles entry point for CNC
Faces handle CW or CCW direction and the start pin controls creation order of the polyline.

image

2 Likes

I am having no luck getting true arcs out of Simple DXF. All fo my exported files so far using the extension are faceted in the .dxf Is there a way to specify 2d or 3d output in the extension so that Circle and Arc info is retained in the output dxf?

I wonder if Simple DXF has the same step you need to do with the built in exporter? With the built in exporter you get real arcs by exporting as DXF as a 3D model, not 2D model. But, you also need to deselect Faces in the export options, otherwise you get the true arcs from the edges, but that is overlaid with line segments from exporting the faces as well.

If possible, share the SU file you are working with. What version of SU are you running?

He’s running SketchUp 2022 as indicated in his profile.

What version are YOU running? Please complete your forum profile.

My version is SU 2020

Sure, here is a file that fails in .dxf. Same file in SU22 and SU 20. This failure does not manifest when sharing in .dxf format between CAD programs, if you open an export in a CAD viewer is will appear correct, but flips arcs when opened by CAM software. @mpoole32 I have seen you are a Simple DXF user in previous post in '19, are you still using it successfully? I can process this export through SimpleDXF and the arc flipping problem is indeed cured but the arcs are all faceted, I must be missing something. Making the “group within a group” is a bit tedious to make the extension function but I would use it if it worked. I saw @ChrisDizon was working on a ruby script that might solve the arc flips a few years ago, but I don’t know where that project ended up.