delete duplicate lines coreldraw? - CorelDRAW X4 - CorelDRAW Graphics Suite X4 - CorelDRAW Community

delete duplicate lines coreldraw?

Hello all,

I have problem when I open some dxf format from autocad.

For each line in autocad in coreldraw I have about 10 lines. How to clean drawing?

Please help!

11 Replies

  • fikri,

    Attached is a macro (I believe it was written so graciously by OS)
    which will come in very handy. But if your drawing isn't terribly
    complicated, I find that the smart fill tool works well too for many of
    my dxf situations. I just use the tool, then marquee select the whole
    works, deselect my new smart fill and hit delete to get rid of all the
    dxf lines.

    joan

    fikri wrote:
    > Hello all,
    >
    > I have problem when I open some dxf format from autocad.
    >
    > For each line in autocad in coreldraw I have about 10 lines. How to
    > clean drawing?
    >
    > Please help!
    >
    >
    > ------------------------------------------------------------------------
    > http://community.coreldraw.com/forums/p/19211/83539.aspx#83539
    >
    removeUnderlyingDups.gms
  • In reply to joan:

    Wow, tool works great!

    Only problem is when objects are combined (which is in my case) so I must do "break curve appart" for each object. Can You add this function?

     

  • In reply to fikri:

    Sorry, I know way too little about VBA to alter it. It was made by OS (I
    think). Anyway, all you have to do is select all, break apart, run macro
    (you don't have to do them one at a time)
    joan

    fikri wrote:
    > Wow, tool works great!
    >
    > Only problem is when objects are combined (which is in my case) so I
    > must do "break curve appart" for each object. Can You add this function?
    >
    >
    >
    >
    > ------------------------------------------------------------------------
    > http://community.coreldraw.com/forums/p/19211/83652.aspx#83652
    >
  • In reply to joan:

    Yes, but how can I select all objects and then break appart?

    The option break appart is disabled if there is any object in selection  without combined objects!

     

  • In reply to fikri:

    Import a dwg or dxf; keep selected; ungroup all; combine; break apart;
    Run RemoveDups; Run NodeClean
    Now you will have a clean fillable object
    Thanks to OS for this macro

    joan

    fikri wrote:
    > Yes, but how can I select all objects and then break appart?
    >
    > The option break appart is disabled if there is any object in selection
    > without combined objects!
    >
    >
    >
    >
    > ------------------------------------------------------------------------
    > http://community.coreldraw.com/forums/p/19211/83911.aspx#83911
    >
  • In reply to joan:

    Works fine but problem might be phaze COMBINE who join two lines in one... so drawing might be edited.

    I'm not sure is it secure?



    [edited by: fikri at 12:39 (GMT -5) on Sun, Apr 11 2010]
  • In reply to fikri:

     

    Just be sure to do your experimenting on a copy of your file... so if all goes sideways you can easily start over.

    Devil  the 'dd'

  • In reply to fikri:

    Sorry, I don't understand your question, maybe someone does?
    joan

    fikri wrote:
    > Works fine but problem might be phaze COMBINE who join two lines in
    > one... so drawing might be edited.
    >
    > I'm not sure is it secure?
    >
    >
    > ------------------------------------------------------------------------
    > http://community.coreldraw.com/forums/p/19211/84304.aspx#84304
    >
  • In reply to joan:

    I draw jig saw puzzles in CorelDRAW and each piece overlaps adjoining pieces on all four sides and are connected at multiple nodes. When sending to the laser for cutting, each side of each piece gets cut twice due to the overlapping lines. I was hoping the RemoveUnderlyingDups and NodeClean macro would help take these overlapping lines and create either individual horizontal and vertical line segments from the connected nodes so the laser would make one continuous cut rather than duplicating all the cuts. However, after running the macros, even on a small portion of the puzzle, I didn't get any results. I combined then broke apart as mentioned and still no joy. The only way I have been able to create separate line segments is to cut apart at the nodes and delete individual line segments... on 1250 pieces, with four sides and all sides overlapping, that's 10,000 separate edits... needless to say, duplicate cutting by the laser is faster.

    Ideally, being able to create continuous horizontal and vertical lines based on corner node connections, would be the best. At that point, I could cut a 1250 piece puzzle with just 50 continuous horizontal lines and 100 vertical lines.

    Regards,
    Dave

  • In reply to Super.Dave:

    Dave, I don't know if this will help but one of the options in this jigsaw puzzle macro automatically removes overlaps

    http://www.oberonplace.com/products/jigsaw/index.htm

     

     

  • In reply to ColorYourWorld:

    Thanks Diane,

    I had looked over his site earlier and wanted to see if CorelDRAW had any steps to fix existing vectors.

    What I ended up doing, was isolating the dozen or so unique puzzle pieces that comprise the puzzle. I took the one piece that seemed to be the one that all the other pieces were built from and broke it into four individual sides. I took one side and used it as the "master" side and built the other three sides. This ensured that the sides were identical when it came time to flip them. I then built the remaining pieces by flipping each puzzle side either in or out.

    From there, I am rebuilding the puzzle starting at one corner and adding individual sides either horizontally or vertically. By doing this, I eliminate any overlapping vectors and everything matches up exactly.

    I went this route so I could save all the work that was done to date. However, I will be downloading Alex's macro as it will quickly give me more flexibility and randomness than I can get manually.

    Thanks for taking the time to reply.

    Dave