OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 01-11-2004, 04:23
Posts: n/a
Default subpath numbering

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

s = ACtiveSelection
sp = s.Cuve.subpath(1)
is the sp will always be the "first" in the curve, or is corel draw just return a range of subpath in no consequtive order in relation the the actual curve.

Reply With Quote
Old 01-11-2004, 10:08
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default Re: subpath numbering

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.
Reply With Quote
Old 02-11-2004, 02:37
Posts: n/a

thx Alex.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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

All times are GMT -5. The time now is 02:42.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com