Add a line to .dwg

Add a line to .dwg

Anonymous
Not applicable
393 Views
1 Reply
Message 1 of 2

Add a line to .dwg

Anonymous
Not applicable
I have been working on this program that is supposed to add a line to a .dwg. I am having trouble creating the line object. Attached is the source code if anyone wishes to look at it.

Thank you
0 Likes
394 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
For starters, a line requires 2 2D points and your passing it an array of 3
points:

Public Sub New(ByVal point1 As Autodesk.AutoCAD.Geometry.Point2d, ByVal
point2 As Autodesk.AutoCAD.Geometry.Point2d)

-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
0 Likes