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 15-04-2011, 16:24
mitsu1
Guest
 
Posts: n/a
Question SubPath.PutCurveInfo um... info

Does anyone know more about this command?
It sounds very useful.
The help file says very little about it.
What do they refer to when they say "node information"?

Thanks,
Mitsu1
Reply With Quote
  #2  
Old 16-04-2011, 22:11
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 15
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 PutCurveInfo

PutCurveInfo replaces one curve with other node information. Create a curve and select it. Then run this code, you will see it is replaced with the CurveElement array.

Code:
Sub Test()
    Dim ce(5) As CurveElement
    
    ce(0).ElementType = cdrElementStart
    ce(0).PositionX = 0
    ce(0).PositionY = 0
    ce(1).ElementType = cdrElementLine
    ce(1).NodeType = cdrSmoothNode
    ce(1).PositionX = 1
    ce(1).PositionY = 1
    ce(2).ElementType = cdrElementControl
    ce(2).PositionX = 2
    ce(2).PositionY = 2
    ce(3).ElementType = cdrElementControl
    ce(3).PositionX = 3
    ce(3).PositionY = 2
    ce(4).ElementType = cdrElementCurve
    ce(4).NodeType = cdrSmoothNode
    ce(4).PositionX = 4
    ce(4).PositionY = 1
    ce(5).ElementType = cdrElementLine
    ce(5).PositionX = 5
    ce(5).PositionY = 0
    
    ActiveShape.Curve.PutCurveInfo ce
End Sub
Reply With Quote
  #3  
Old 18-04-2011, 12:05
mitsu1
Guest
 
Posts: n/a
Default

Thanks shelbym,

This looks very interesting...

I know that it can be done for subpaths but can this be done to segments?

Is it possible to insert specific "lists" of "node information" into a single segment along a curve (with or without subpaths) ?
Is it possible to have the "node information's" X Y coordinates relative to the segments angle and position rather than absolute coordinates?

If so then this command could really come in handy.

I'm surprised that Corel has so little documentation on this command.

Thanks in advance,
Mitsu1

Last edited by mitsu1; 18-04-2011 at 12:09.
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
Extract subpath crash and question. runflacruiser CorelDRAW/Corel DESIGNER VBA 2 15-02-2011 06:45
Looking for info on method... ddonnahoe CorelDRAW/Corel DESIGNER VBA 7 30-08-2009 18:14
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


All times are GMT -5. The time now is 11:24.


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