![]() |
#1
|
||||
|
||||
![]()
In Draw X7, if I create a line segment that only has 2 nodes, then select all the nodes with the node editing tool and hit the plus key on the numerical keypad, I get additional nodes, evenly spaced, every time i hit the plus key.
How can I achieve this via VBA? Code:
Set chevron = ActiveLayer.CreateLineSegment(x, y, (w + 0.5), y)
__________________
Sean Waiting for a ride in the T.A.R.D.I.S. |
#2
|
|||
|
|||
![]()
Here simple code to add nodes to each segments
Code:
Private Sub AddNodes() Dim s As Shape, nseg& Set s = ActiveShape: If s Is Nothing Then Exit Sub For nseg = s.Curve.Segments.Count To 1 Step -1 s.Curve.Segments(nseg).AddNodeAt 'without parameters adds node to midpoint Next End Sub s.Curve.Segments.All.AddNode Last edited by shark; 07-10-2015 at 02:13. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding nodes to Node range | prongs | General | 2 | 19-02-2012 14:13 |
draw nodes at crossing point between a line and a rectangle | joyJOYJOY | Corel Photo-Paint VBA | 1 | 01-08-2007 13:18 |
Delete Segment | Sablesword | Other Oberon Commercial Products | 0 | 07-01-2007 19:28 |
VBA Segment GetIntersections | thira | CorelDRAW/Corel DESIGNER VBA | 0 | 18-11-2006 02:16 |
Convert cure or segment to many Nodes | -=HKLC=- | CorelDRAW/Corel DESIGNER VBA | 2 | 04-10-2004 20:30 |