OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-04-2012, 12:31
nic nic is offline
Member
 
Join Date: May 2009
Posts: 90
Default Joining SubPaths

Hi

Can someone give me some guidance on joining subpaths? I can find lots on breaking paths apart but cant seem to find the command for joining sub paths.

The subpaths I want to join are part of a continuous single curved line which I would like to be a single path.

thanks
nic
Reply With Quote
  #2  
Old 15-04-2012, 01:16
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,790
Blog Entries: 13
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Joining

This will work for X5 and above.

Makes sure that you combine your shape, then you can do this:
Code:
Sub CloseThisShape()
    ActiveShape.CustomCommand "ConvertTo", "JoinCurves", 0.1
End Sub
I actually like to do something like this, closing all the small gaps first, then a bit larger, then really large gaps:
Code:
Sub CloseThisShape()
    Dim s As Shape
    
    Set s = ActiveShape
    
    s.CustomCommand "ConvertTo", "JoinCurves", 0.01
    s.CustomCommand "ConvertTo", "JoinCurves", 0.1
    s.CustomCommand "ConvertTo", "JoinCurves", 1
End Sub
-Shelby
Reply With Quote
  #3  
Old 16-04-2012, 03:45
nic nic is offline
Member
 
Join Date: May 2009
Posts: 90
Default

Thanks Shelby
Your first example does exactly what I want - the sub paths all touch and there were so many of them that to carry out the job manually would have taken days.

thanks again,
nic
Reply With Quote
Reply

Tags
subpath join


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
s.Curve.SubPaths(i).BreakApartAt kobe CorelDRAW/Corel DESIGNER VBA 6 30-10-2011 14:06
Subpaths, Segments, and Nodes m31uk3 CorelDRAW/Corel DESIGNER VBA 7 20-06-2008 12:28
Path Tool - Joining nino General 3 03-12-2007 17:54
Macro for extracting subpaths madhur General 1 23-10-2007 08:58
Joining Nodes Help Needed Dart CorelDRAW/Corel DESIGNER VBA 2 29-11-2006 18:18


All times are GMT -5. The time now is 12:17.


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