Results 1 to 13 of 13

Thread: Corel: how to remove duplicate curves/lines globally in a document?

  1. #1
    Join Date
    May 2008
    Location
    Upper East TN, in the mtns
    Posts
    140

    Corel: how to remove duplicate curves/lines globally in a document?

    Howdy! I'm a long time lurker, and I have learned so much from you folks! (And yes, you can tell by my accent, I'm from Tennessee, I gave it away.) Most of the questions I've had, I have been able to search the archives and find answers.

    This time, however, I am stumped. Maybe I don't know the right keywords.

    A customer brought me some DXF plans, five files' worth. He wants pricing on cutting it out of wood. The cutting part won't take long, but fixing the file will. I could see that there were multiple lines because some lines were thicker.

    I wrote notes on the CDR attachments, but I'll explain here, too.

    When I select one of the thicker lines and delete it, it's gone. So I knew there wasn't a second line below it. Then I tried Ctrl-K, to break apart the curve. Wow, some of the lines had 23 copies! So I would hold Ctrl, de-select one of the lines, then hit the Delete key to erase the other 22. This will take a lot of time to clean up like this.

    Do you know of an easier way to remove these excess curves? I tried selecting several objects then breaking the curves apart, but it won't let me. I tried a macro, but I think some of the actions aren't able to translate to it.

    I thought I would ask for your help, not only for me, but maybe someone reading this later can benefit.

    I attached it as Ver 10 and 13. I engrave with a different computer, and I don't have the ULS color palette loaded on this one, so the colors may not be accurate.

    Thanks a bunch!
    Amy
    Attached Files Attached Files
    ULS X-660 CO2 50 watt (July 2008), Corel X7, Photograv, GX 7000 for dye sub, Graphtec vinyl plotter, Rayzist Sandcarving system (Nov 2018), JPT MOPA M6 30 watt Fiber Laser (May 2019)

  2. #2
    Join Date
    Dec 2006
    Location
    Corvallis, Oregon
    Posts
    443
    Quote Originally Posted by Amy Shelton View Post

    Do you know of an easier way to remove these excess curves? I tried selecting several objects then breaking the curves apart, but it won't let me. I tried a macro, but I think some of the actions aren't able to translate to it.
    Welcome to the world of Autocad. The problem is common, and is caused by Autocad, not Corel.The only way that I know of to correct it is to select the top curve and "nudge" it to the side, leaving the rest of the lines in place. Keep doing this until you have a complete drawing off to the side. You can then delete the image that you started with. Of course, you now have to join the end nodes together. I am informed that Corel now has an automated function to do this (join nodes) in Version 15, but I have not tried it myself.

    Sometimes a different version of Autocad will not do this. Many programs will allow you to export different version of a "DFX" file for just this reason. If you customer generated the DXF from some other drawing program, maybe they can send you the drawing in some other format such as EPS or AI.

    Mark
    ULS X-2 660, Corel X3, Haas VF4, Graphtec vinyl cutter, Xenetech rotaries (3), Dahlgren Tables, Gorton P2-3, New Hermes pantographs (2), and recently, 24" x 36" chinese router. Also do sublimation, sand blasting, & metal photo. Engraver since 1975.

  3. #3
    If they created the file, ask if they can convert everyting to a 0 width line before saving it as a .dxf. Another option is to have them print it to a .pdf. It will remain a vector file once you import it into Corel. I've had good luck with both of these techniques and i imagine a .eps will work fine too.
    If you like, you can send me the dxf files and I can do either conversion for you.

    I hope you can understand my Nortern accent der eh.
    Scott Challoner
    30W LaserPro Spirit (Need more power)
    30W Wisely Fiber Galvo

  4. #4
    if you have AutoCAD, running the OVERKILL command will remove duplicate objects.

    Have you tried the smart fill tool to recreate the boundary you need to cut and erasing all of the other objects from the DXF?

  5. #5
    When you import the file into CorelDraw make sure you use the DXF filter and click 'Auto Reduce Nodes'
    Mike Ireland
    Universal Laser Systems, Inc.

  6. #6
    Join Date
    Aug 2006
    Location
    Suwanee, GA
    Posts
    3,686
    That particular file would be a couple of clicks to fix, others might not be so easy.

    I would use smart fill and simply click inside the gear. The resulting object would be a single entity with multiple nodes. Delete the imported dxf objects and you are left with one object.

    I use smart fill for a lot of things and this is a shining example of when it is a very powerful tool.

    Gary

  7. #7
    Join Date
    Nov 2007
    Location
    Glenelg, MD
    Posts
    12,256
    Blog Entries
    1
    If the object can be considered extra nodes, select the entire thing and use the "Reduce Nodes" tool. I haven't played with redundant lines enough to know if it would be the same as redundant nodes... maybe if you joined objects?
    Hi-Tec Designs, LLC -- Owner (and self-proclaimed LED guru )

    Trotec 80W Speedy 300 laser w/everything
    CAMaster Stinger CNC (25" x 36" x 5")
    USCutter 24" LaserPoint Vinyl Cutter
    Jet JWBS-18QT-3 18", 3HP bandsaw
    Robust Beauty 25"x52" wood lathe w/everything
    Jet BD-920W 9"x20" metal lathe
    Delta 18-900L 18" drill press

    Flame Polisher (ooooh, FIRE!)
    Freeware: InkScape, Paint.NET, DoubleCAD XT
    Paidware: Wacom Intuos4 (Large), CorelDRAW X5

  8. #8
    Join Date
    May 2008
    Location
    Upper East TN, in the mtns
    Posts
    140
    This is neat how there are so many different solutions! (Is this similar to when there are 5 people in the room, there 6 different opinions?)

    I tried the smart fill, but, uh, apparently I wasn't smart enough to do it. I guess it was in too many different pieces. When I combined it, there were some strange shapes added to the interior.

    Mike Ireland's suggestion of clicking "Auto Reduce Nodes" when I was importing did the trick! I couldn't believe how simple it was. Thank you! You get the jelly doughnut award! (That's what my college professor would give out, lol)

    After that worked, I didn't try any of the other suggestions, but I am interested to try them. Just glad I can put it off for now and get this done for him!

    eh? Scott? I just ran your post through a Google translator, and understood yer talkin' perfectly!

    Thanks, everyone!
    ULS X-660 CO2 50 watt (July 2008), Corel X7, Photograv, GX 7000 for dye sub, Graphtec vinyl plotter, Rayzist Sandcarving system (Nov 2018), JPT MOPA M6 30 watt Fiber Laser (May 2019)

  9. #9
    I have had similar trouble recently where there were stray curves underneath the solid line so the laser was dancing around doing a cut. I was able to select the entire object and close path with straight lines just to make sure it was solid. Then you can select the entire area/image again and then hold shift down and click on the object you want to keep to deselect it. Then what is left selected are the remaining objects to delete. When done, you can move the clean object aside to make sure nothing is left, then undo.
    GCC Laser Pro Mercury L25

  10. #10
    Join Date
    Nov 2006
    Location
    Maple, Ontario, Canada
    Posts
    1,011
    I've had same issues with DXF. Than I asked customer to save/export the file in WMF format and it worked great.

  11. #11
    Join Date
    Mar 2008
    Location
    Murfreesboro, TN.
    Posts
    212
    We draw with Turbocad and Autocad all the time for precision templates. The easiest way to make things work in a dxf prior to importing into Corel is to make all lines .001 in the cad program and make sure all lines are joined prior to export to a dxf file (polyline). For best results all lines need to snap to endpoints, intersections, etc or you may have tails on the end of a line and Corel often does strange things with these leftovers. If you can export in version 2000 Autocad ...... (cleaner simpler dxf file)...... it tends to work better. (Corel X5 has a few issue with dxf files and sometimes we have to go to X4 first and then bring into x5 if we need something in the newer version. We have reported the errors!)

    Hope this helps.....I'm in Tennessee; guitartemplates.net for what we do with templates we make with Autocad that we sell........ we also use the laser for all our instruments in that we make parts with the laser from cad dxf files. waldroninstruments.com
    Kevin Waldron
    Last edited by Mike Null; 07-02-2010 at 9:01 AM. Reason: removed links to personal sites

  12. #12
    Join Date
    Dec 2007
    Location
    Texarkana, TX
    Posts
    177
    If you export your files to DXF and open into AutoCad you can change all the lines into .000 width.

    Then import DXF back into Corel.

    A while back someone posted a visual basic script to "DeleteUnderlyingDups". Explode the import and then run script. This cleans up file nicely. I ran your file and deleted 836 lines.

    If you PM me I can cycle file for you.

    GDG
    Attached Files Attached Files

  13. #13
    Join Date
    Feb 2005
    Location
    salem, or
    Posts
    110
    Had the same problem with Corel version 12 now that I have 14 I can open and cut the same files with no problems. Never did learn or like autocad.
    rich

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •