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 19-08-2008, 22: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
  #2  
Old 21-08-2008, 01:52
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 13
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 Hmmm

It seems to work fine in X4. It is a certain curve that you get the error?

-Shelby
Reply With Quote
Reply

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 22:07
subpath numbering lkoky CorelDRAW/Corel DESIGNER VBA 2 02-11-2004 03:37
Select all nodes if the subpath d-signer CorelDRAW/Corel DESIGNER VBA 2 13-05-2004 00:47


All times are GMT -5. The time now is 21:56.


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