Anyone know the best way to do this not manually? I've demonstrated my process in the attached image. That's only 5 of the 20 objects in this set which I must apply this process, and sometimes I must do this for many hours in a day with hundreds of objects in various, different sets of objects. There is a convenient "select all nodes" button (if you don't want to press ctrl+a, sure) to select all the nodes within the selected objects, but I don't want to select all of them - Just one, from each, because I only need to break apart 1 node per shape to get my desired result as preparation for the last step (3).
I'm very much a beginner in coding macros, so if that is the best route for this process, please provide any suggestions or resources specific to coreldraw + VBA.
__________________________________________________________________________________
This seems to work for me, breaking each closed shape at the first node.
Sub break_apart_closed_curves() Dim sr As ShapeRange Dim s As Shape Set sr = ActiveSelection.Shapes.FindShapes(, cdrCurveShape) For Each s In sr s.Curve.Nodes.First.BreakApart Next sEnd Sub
My knowledge of VBA and of the CorelDraw object model are both very limited, and I haven't studied either of them in a structured way. What I don't know about them would fill a book.
I got started by looking at VBA code posted by others here on these forums, then trying to modify it to do specific things I wanted to do.
When I ran into problems, I searched on-line. Sometimes answers came directly from these forums, sometimes from Oberon Place.
Corel has some API reference information and a programming guide right here on their web site.
If you would rather look at the programming guide as a regular document (and I do find that more convenient than bouncing through web pages), then be aware that it might already be on your system. On my system, it's located in C:\Program Files\Corel\CorelDRAW Graphics Suite X7\Data\Macro Programming Guide.pdf. There's also a shortcut to it through the Start menu under the Graphics Suite X7 stuff \ Documentation.
Ronny,
I checked out a video of that tool and it just might be perfect. I have X7 Standard, so I'm trying to get my boss to look into the Premium option so we can unlock the Premium Knife (and not have to upgrade 6 computers beyond X7). Can anyone confirm that the X7 Premium Knife does in fact leave the curves open? Because if it does like the eraser tool does in the attached image, it is not going to help beyond Eskimo's code.