News:

All posts discussing pricing or where to buy TurboCAD will be deleted.

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.

Modifying DXF

Started by Joel, February 27, 2019, 06:46:44 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Joel

Hi,

I just built a laser cutter for various projects. One of which is to cut parts for model aircraft. I have several plans that are raster images. I can use coreldraw to convert them to vector files. Its does a decent job but there is clean up to do. Attached is a sample DXF of some ribs I converted. If you look at the slots in the ribs where the spars would go, you can see they are not square and not the same size. is there a way that's not too painful to replace those with an open rectangle. Say I draw the notch in the size I need, is there a way to cut out what' there and drop my corrected notch in?

I've also tried importing an image into TC to trace over, but that introduces other issues.

Thanks

Joel

Jeff_in_90620

Quote from: Joel on February 27, 2019, 06:46:44 PM
If you look at the slots in the ribs where the spars would go, you can see they are not square and not the same size. is there a way that's not too painful to replace those with an open rectangle. Say I draw the notch in the size I need, is there a way to cut out what' there and drop my corrected notch in?

I've also tried importing an image into TC to trace over, but that introduces other issues.

You can edit the nodes that make up the 2D outlines.  There are two ways to proceed:
1) Delete the nodes that define the notch and subtract a properly-sized rectangle from it.
2) Draw some reference lines that will bound the desired positioning of the notches and move the current nodes to the reference lines.

I could do either, but I think it would be easier to go with method 2.  I would recommend against Construction Lines as they've been a PITA.  Draw regular lines as reference lines (put them on another Layer, if you want).

But the first thing I would suggest doing is to re-draw your outlines with fewer data points (or even use Arcs instead of Splines).  All the extra points on what should be smoothly-changing curves just add needless complexity and make the result less smooth than you want.

I placed some Arcs on one of your outlines and placed two Rectangles over them to 2D Subtract.  You can put the resulting Region in Edit Node mode to see how much simpler and cleaner the resulting object.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Joel

Thanks, I will try your suggestions and see what works best for me. I also think there is some cleanup I can do on the raster before even trying to convert it.

But the first thing I would suggest doing is to re-draw your outlines with fewer data points (or even use Arcs instead of Splines)

I'll have to look at this. When I did the conversion in CD, there was an option to convert things to curves. I though I selected this.

In any case, you gave me some things to look at.

Thanks

Joel

Joel

Jeff,

Also looks like you used TC2018. I wasn't able to open your sample ( I have 2017 ). But, I think I get what you were doing.

Thanks

Joel

Jeff_in_90620

Quote from: Joel on February 28, 2019, 06:23:59 AM
Also looks like you used TC2018. I wasn't able to open your sample ( I have 2017 ). But, I think I get what you were doing.

Here you go.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

murray dickinson

Something to bear in mind is that some plotter/router CNC software still uses R12 .dxf, which doesn't recognise splines.   Exploding splines to polylines, or joining them to polylines converts them.  I encourage you to try TC's 32-bit trace tool on imported pictures, the higher the resolution you can scan the print drawing at, the better, or even photograph it if you can press or iron the drawing flat, use removable glue tape to hold it to a backing board, and ensure that the camera is square on.  The results will be much better than the .dxf you've posted at top and features should be recognisable as rectangles and ortho cutouts, a lot easier to locate accurately.  I've been scanning and digitising paper drawings for a lot of years, and it's been my experience that tracing print drawings manually, with tracing paper and pencils, scanning the manual tracing and then digitally tracing it, can give better results from drawings when they're low resolution, stained or yellowed from age.  You don't have to trace the whole drawing, it's just an assist for the most problematic areas   I've also tried a lot of raster-to-vector products over time, and none have been appreciably better than TC's old built-in.  Like anything else, it takes practice.   

Joel

Jeff - thanks for 2017 version!

Murray - I've tried tracing before. I was hoping to find a process that will get me most the way there.

Lots of playing and experimenting to do.

Thanks!

Joel

Joel

The best work flow I found is to clean up the raster best I can. Once that's done, CorelDraw does a descent job of converting it to a vector file. I save that off as a DFX and load it into TC. From there, I trace over it manually. The trace function in TC x86 leaves too much touch up to do, so I found it faster to just use the spline by control points to trace over the CD DXF file. I also stop at where spar notches are so I can place what size I want when I get things sorted out.

Some day I should actually get a plan done..... one piece at a time.

Thanks for the suggestions.

Joel