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 06-07-2017, 06:03
ebu ebu is offline
Member
 
Join Date: Mar 2007
Posts: 31
Default Curve. How I get the Start.- and Endcoordinate

Hello,

if is possible to get the Coordinate of the Start.- and the End from a curve?
(First and Last in the Object Properties Curve)
In VBA. I use X5

Thanks
Reply With Quote
  #2  
Old 12-07-2017, 03:48
shark shark is offline
Senior Member
 
Join Date: Aug 2010
Location: Russia, Belgorod
Posts: 146
Default

Curve consists of nodes. Therefore you may use: Curve.Nodes.First and .Last
Every node have a PositionX and PositionY.

Code:
Dim s As Shape, x1#, y1#, x2#, y2#
    Set s = ActiveShape
    s.Curve.Nodes.First.GetPosition x1, y1
    s.Curve.Nodes.Last.GetPosition x2, y2
Reply With Quote
  #3  
Old 24-07-2017, 12:09
ebu ebu is offline
Member
 
Join Date: Mar 2007
Posts: 31
Default

Thank you for the solution
Reply With Quote
  #4  
Old 19-10-2017, 03:56
ager ager is offline
Member
 
Join Date: Jul 2010
Location: Russia
Posts: 44
Default Array of the coordinates

Join to the question.
How quickly to get coordinates of ALL nodes of the curve as a array (without using a cycle for...next)?

Last edited by ager; 19-10-2017 at 04:05.
Reply With Quote
Reply


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
Application Start Event! davidpmp Macros/Add-ons 3 06-02-2012 10:40
Can the Calendar Start on Sunday instead of Monday? LeahStorm Calendar Wizard 1 24-01-2012 02:52
Stop and start screen updating? DChinell CorelDRAW/Corel DESIGNER VBA 5 16-11-2008 14:39
macro for break curve and join curve mgmcs Macros/Add-ons 2 26-05-2006 22:01
run macro at start up Corel 11 ???? -=HKLC=- CorelDRAW/Corel DESIGNER VBA 14 30-10-2004 09:29


All times are GMT -5. The time now is 01:36.


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