![]() |
#1
|
|||
|
|||
![]()
Hey all,
i've been working trying to figure this one out, and i'm getting pretty annoyed that I can't.. The long and short of it is.. I'm looking for a way to take a shape made from lines and fill it. The bit I need is how to join the nodes, i've been trying to use joinwith command (with combined and not combined lines) but i'm either having real trouble with the syntax or it doesnt work how I think it does. I've recorded a macro doing it, but I don't understand the commands it uses. Can someone give me a quick hand here, Thanks alot! |
#2
|
||||
|
||||
![]()
If you are doing the code it would look something like this:
Code:
Sub DrawMyShape() Dim sShape As Shape Dim crv As Curve Dim sp As SubPath Set crv = CreateCurve(ActiveDocument) Set sp = crv.CreateSubPath(0, 0) sp.AppendLineSegment -2.5, 0, False sp.AppendLineSegment -2.5, 5, False sp.AppendLineSegment 0, 7.5, False sp.AppendLineSegment 2.5, 5, False sp.AppendLineSegment 2.5, 0, False sp.AppendLineSegment 0, 0, False sp.Closed = True Set sShape = ActiveLayer.CreateCurve(crv) sShape.Fill.UniformColor.RGBAssign 178, 178, 178 End Sub Hope that helps, Shelby Last edited by shelbym; 29-11-2006 at 11:21. |
#3
|
|||
|
|||
![]()
Thanks alot, and thanks for moving my posts to the correct place, i'll make sure they go here from now on.
|
![]() |
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 |
A script for joining overlapping nodes? | zhuyan166 | CurveWorks | 0 | 22-05-2006 02:58 |
How to remove extra nodes from a curve | Alex | FAQ | 1 | 23-01-2006 10:37 |
problems with nodes | jmalmsteen | CorelDRAW/Corel DESIGNER VBA | 1 | 14-06-2005 13:23 |
It is a bug? (Reflecting Nodes) | Hernán | General | 0 | 26-10-2004 02:13 |
Reducing Nodes Semi Automatic | Superfreak | New product ideas | 2 | 05-10-2004 03:10 |