OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 10-10-2004, 07:53
Posts: n/a
Default Change first Node

I have a figure, in which to me to change the first node:

Whether it is possible on VBA, without drawing a new figure with necessary points?
Reply With Quote
Old 10-10-2004, 09:56
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: Change first Node

To do this, you need to break the path apart at that new node and then join it back.

Sub ChangeFirstNode()
    Dim s As Shape
    Dim sp As SubPath
    Set s = ActiveShape
    Set sp = s.Curve.SubPaths(1)
    If sp.Closed Then
        ' Make node #3 as the first node of the path
        sp.StartNode.JoinWith sp.EndNode
    End If
End Sub
I hope this helps.
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
Node Coordinate designation ddonnahoe CorelDRAW/Corel DESIGNER VBA 5 24-02-2005 09:00
Node Mover ddonnahoe Code Critique 6 23-02-2005 16:33
vba question bumblebee CorelDRAW/Corel DESIGNER VBA 4 04-08-2004 15:07
Detecting Last Node Selected? barnold CorelDRAW/Corel DESIGNER VBA 4 21-04-2004 13:03
Node selection question Peter Clifton CorelDRAW/Corel DESIGNER VBA 1 02-12-2003 12:00

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

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