News:

When replying to a specific statement be sure to quote the previous post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Convert lines to curves

Started by marsheng, May 30, 2013, 03:12:00 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

marsheng

I have 360 lines that form an oval. How can I turn this into a series of curves with say an error of no more than 1 thou from the individual lines?

Henry Hubich

Convert the collection of lines into a single Polyline and then apply Convert to Curve to the result. Be aware that there must be no gaps in the set of lines and they must not overlap, otherwise Convert to Polyline will fail.

Henry H

marsheng

I tried that but the convert to curves is greyed out.

Henry Hubich

Quote from: marsheng on May 30, 2013, 01:20:27 PM
I tried that but the convert to curves is greyed out.

Are you sure the object you're trying to convert to a curve is indeed a Polyline?

Henry H

marsheng


Henry Hubich

Quote from: marsheng on May 30, 2013, 10:40:55 PM
Thank ls for the help.

I have put the file on my FTP side.

http://www.marshland.co.nz/ftp/CB150/Wallace-274.dxf

The collection of lines had not been converted to a single Polyline. I opened your .dxf, converted to a Polyline, then converted that to a Curve. Modified file is attached herewith, in .tcw version 18 format. It should open OK in TCad v18, v19, or v20. Let me know if you need a different version format.

Henry H

marsheng

HI should have mentioned it was the original file and not a polyline. I wanted to make sure I didn't corrupt anything from the original. Even with polyline , the convert to curves is grey out.

I have version 15 and it won't open the file you sent. My CAM package needs a DXF file for import. Any chance of a DXF ?

marsheng

marshland
at
marshland
co
nz

DonCW

DonCW
2020 Platinum
2018 Platinum
2017 Pro with Light Works Plug in



Windows 10
There's so much to learn and not much time left to learn it.

Henry Hubich

Quote from: marsheng on May 31, 2013, 02:02:03 PM
HI should have mentioned it was the original file and not a polyline. I wanted to make sure I didn't corrupt anything from the original. Even with polyline , the convert to curves is grey out.

I have version 15 and it won't open the file you sent. My CAM package needs a DXF file for import. Any chance of a DXF ?

I find that saving to .dxf makes the Curve revert to a Polyline.

Attached herewith is a v15 .tcw version of the original Polyline plus a copy that has been converted to a Curve with a tolerance of .001". Not sure how useful it'll be since you need a DXF and DXF seems not to support "Curves."

Henry H

marsheng

What it looks like is a some of the line segments have been joined into straight lines so instead of  360 segments I now have about 60. There are no curves at all.

When I imported the original DXF into SheetCAM, it created 7 curves for the 360 lines. The curves were pretty good.

I'm trying to do better than 0.001 thou.

See attached of SheetCAMS GCode plot against the original.

marsheng

This the G-Code only 7 arcs.

N0060 G00 X3.0063 Y0.0631 ----------------------Start of Arc
N0080 G03 X2.9867 Y0.3937 ------------  End Of Arc/Beginning of next arc     I-0.6510 J0.0115  Center point
N0090 G03 X-0.3548 Y3.3206 I-0.0832 J0.2598
N0100 G03 X-2.8881 Y0.9310 I-0.0965 J0.5092
N0110 G03 X-2.9698 Y0.4840 I6.6928 J-1.0510
N0120 G03 X-0.4175 Y-2.9708 I0.0081 J0.0138
N0130 G03 X0.0000 Y-3.0000 I0.0000 J-0.0000
N0140 G03 X3.0063 Y0.0631 I-0.0050 J0.0118

Henry Hubich

Quote from: marsheng on May 31, 2013, 09:00:16 PM
What it looks like is a some of the line segments have been joined into straight lines so instead of  360 segments I now have about 60. There are no curves at all.

When I imported the original DXF into SheetCAM, it created 7 curves for the 360 lines. The curves were pretty good.

I'm trying to do better than 0.001 thou.

See attached of SheetCAMS GCode plot against the original.

Apparently DXF does support circular arcs. Have a look at the attached drawing. Seems to match your original better than the overlay you posted. It was made in TCad v20, which offers a "Polyline to Arc Polyline" conversion tool, with user-specifiable tolerance.

Since the Forum won't accept .dxf files for upload, I changed the extension to .txt. Change it back to .dxf before trying to open it.

Henry H

marsheng

That look very good. Possibly a time for an upgrade. !!!!

Thanks for the replies. Now I know it can be done, I'll press on with the whole project concept.

Cheers Wallace

marsheng

Me again

Ok so I exploded your drawing and found many curves which is what I wanted.

I went back to my original and selected the whole drawing (not just a few segments) and joined then all together. Then Lines to curves opened up. I selected 0.001 " and converted it to curves.

I then exploded the drawing (twice) and it went back to line segments. I redid the exercise and what I think happens is the the first explode changes it back to a polyline and the second into line segments.

How can I see the arc segments like I can in your file you sent me ?



Henry Hubich

#15
"I then exploded the drawing (twice) and it went back to line segments. I redid the exercise and what I think happens is the the first explode changes it back to a polyline and the second into line segments."

That's correct.

"How can I see the arc segments like I can in your file you sent me ?"


You can't, because there are no arc segments in your original drawing. In the latest one I posted, arc segments were automatically created with the "Polyline to Arc Polyline" tool in TCad v20.

Henry H

marsheng

I haven't got to the bottom of this as yet. The drawing sent as Drawing2.txt on 31/05  when exploded, shows the individual arcs no lines. OK how did you do this?

Is this option only on Ver 20 as Polyline to Arc Polyline?

Thanks Wallace.


Henry Hubich

Quote from: marsheng on June 01, 2013, 08:04:47 PM
I haven't got to the bottom of this as yet. The drawing sent as Drawing2.txt on 31/05  when exploded, shows the individual arcs no lines. OK how did you do this?

Is this option only on Ver 20 as Polyline to Arc Polyline?

Thanks Wallace.

Yup. New in v20. The following is copied from the v20 Help file...

"Convert to Arc Polyline

"Available inTurboCAD Deluxe, Pro, and Pro Platinum Only

"Converts a 2D object into a Polyline composed of arcs. Any single-line 2D object can be converted. Objects like double lines, dimensions, and text must be exploded first before converting."

Henry H