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
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
-John
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.
Yeah... CurveWorks is great. And yes... Explode is the one. If you try it out, do the setup.exe (automatic install of macro) using CurveWorks as default workspace and it'll put all the icons with pop up descriptions of what they do... it leaves the rest of your custom settings alone so it's very nice and easy to use.
the 'dd'