![]() |
#1
|
|||
|
|||
![]()
Hi there,
I have to deal with some postscript files where curve lines are represented by a series of facetted straigth lines. Once imported into CorelDraw, I can group them and Combine them into a single curve as they should be. But then the curve will have multiple subpaths and it isnt exactly smooth. Tried to write a small VBA routine to join the subpath into a single one but came across the problem of not sure when I do Code:
s = ACtiveSelection sp = s.Cuve.subpath(1) thanks. |
#2
|
||||
|
||||
![]()
CorelDRAW counts subpaths as they were added to the curve. They are not necessarily in the order as they appear on the screen. You can see the order of subpaths when you select one node with the Shape tool and then hit Tab to select next node. As you are going from node to node, you'll see what the path direction is and what the subpath order is.
In order to make the curve closed, you need to find endnodes of different curves which are closest together on the screen. You can download this free macro which should do the work for you though: http://www.oberonplace.com/vba/drawm...eeffectssh.htm It's CloseShape macro makes the multipath curves closed by attaching endnodes and building a single path. However for more advanced functionality, you should look at http://www.oberonplace.com/products/...orks/index.htm and its Fuse Curves function. |
#3
|
|||
|
|||
![]()
thx Alex.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page Numbering | Hernán | New product ideas | 3 | 15-02-2007 22:12 |
Problem with Page Numbering macro | pmills | Macros/Add-ons | 1 | 07-05-2005 08:49 |
Auto Numbering Script | DaFool | CorelDRAW/Corel DESIGNER VBA | 7 | 31-01-2005 11:27 |
Numbering and Printing | dean29673 | Code Critique | 2 | 12-07-2004 16:07 |
Select all nodes if the subpath | d-signer | CorelDRAW/Corel DESIGNER VBA | 2 | 12-05-2004 23:47 |