![]() |
#1
|
||||
|
||||
![]()
An oldie but goodie and a PITA
Running the following w/ combined subpath(s) breaks it Any solution to keep the subpath from breaking apart. Same would go for applying the subpath 1st then the main path One way around it is by breaking apart the entire graphic but that sometimes becomes cumbersome. Any chances?? Code:
Sub SetFirstNode() 'Sets 1st Node Start Point Dim s As Shape Dim nr As NodeRange Set s = ActiveShape If s Is Nothing Then MsgBox "Please select a single node.", vbExclamation, "Set First Node": Exit Sub Set nr = s.Curve.Selection If nr.Count <> 1 Then MsgBox "Please select a single node.", vbExclamation, "Set First Node": Exit Sub If s.Curve.Closed Then nr.BreakApart s.Curve.Nodes.First.JoinWith s.Curve.Nodes.Last Else MsgBox "The shape must be closed to set First Node.", vbExclamation, "Set First Node": Exit Sub End If End Sub
__________________
Using X4 & 2019 2020... yikes 2021 |
![]() |
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 |
SubPath.PutCurveInfo um... info | mitsu1 | CorelDRAW/Corel DESIGNER VBA | 2 | 18-04-2011 12:05 |
Extract subpath crash and question. | runflacruiser | CorelDRAW/Corel DESIGNER VBA | 2 | 15-02-2011 06:45 |
About SubPath.AddNodeAt | SUNNY | CorelDRAW/Corel DESIGNER VBA | 1 | 21-08-2008 00:52 |
subpath numbering | lkoky | CorelDRAW/Corel DESIGNER VBA | 2 | 02-11-2004 02:37 |
Select all nodes if the subpath | d-signer | CorelDRAW/Corel DESIGNER VBA | 2 | 12-05-2004 23:47 |