When importing PDF files, the lines are often combined in very odd ways. Often pdf files are the only way I receive technical drawings (DRW), and I need to edit them and/or break them apart. So far, the only means I've found to edit line art in such PDFs is to tediously select each line and click "break curve apart."
I'd like to know if there is a way to select ALL lines in a drawing and break them all apart in one fell swoop!
(Perhaps a VB macro?? -- Or some sort of import method?)
It would save me a great deal of time on my job if I didn't need to break each curve individually when I need to take one portion of a drawing.
Indyrose
My GDG SSSS macro can do this. Select objects and it breaks curves, splits in half, all curves selected.
It's here on Jeff's site.
I'm not sure if this is what you mean though.
-John
Sorry, but I don't think that's what I'm looking for. I don't need a line, or lines, broken in half -- I need a complex combined curve (line) broken back into individual lines.
A simple macro would be great in your case.
Do you have a pic or better description of how you need it to work?
Do you need it broken apart at the nodes that are there?
Not broken at ALL the nodes -- If you've editted PDF line art, you'll know what I mean -- A single curve can consist of many total curves (not just individual nodes), some located all over the page. "Break curve apart" breaks them back down into their original curves or lines. It's more like undoing a "combine" function rather than breaking them at nodes.
Oh ok.
Try this:
Sub breakIt()Dim s As ShapeDim sr As ShapeRangeSet sr = ActiveSelectionRangeFor Each s In sr If s.Type = cdrGroupShape Then s.UngroupAll ActiveSelection.BreakApart Else s.BreakApart End IfNext sEnd Sub
BINGO!!
That's it!! Geez, I wished I had asked this forum a long time ago! I've been struggling with this for years!!
Wow! Thanks so much!!
Looks like you got the answer you were looking for but I still want to suggest you take a look at Alex Vakulenko's CurveWorks. It contains of a number of useful macros for object editing, and the one you're looking for is Explode, I think.