OberonPlace.com Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 19-08-2008, 21:58
SUNNY
Guest
 
Posts: n/a
Smile About SubPath.AddNodeAt

The Code can not work in CorelDraw 12
'=======================================================
Sub ca2()
For i = 0.9 To 0.1 Step -0.1
ActiveShape.Curve.SubPaths(1).AddNodeAt i, cdrRelativeSegmentOffset
Next
End Sub
'=======================================================

err:
---------------------------
Run-time error '-2147024809 (80070057)':
Type is out of range, its value must be between 0 and 1.
---------------------------



↓↓↓↓↓↓↓↓↓↓↓works fine.
'=========================================
Sub ca()
For i = 0.9 To 0.1 Step -0.1
ActiveShape.Curve.SubPaths(1).AddNodeAt i, cdrAbsoluteSegmentOffset
Next
End Sub
'=============
Sub ca2()
For i = 0.9 To 0.1 Step -0.1
ActiveShape.Curve.SubPaths(1).AddNodeAt i, cdrRelativeSegmentOffset
Next
End Sub
'=========================================
Reply With Quote
 

Tags
addnodeat


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
About AddNodeAt 0.5, cdrParamSegmentOffset SUNNY CorelDRAW/Corel DESIGNER VBA 1 24-09-2008 21:07
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 10:42.


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