Get the end point coordinates from an Edge using VB.Net?

Get the end point coordinates from an Edge using VB.Net?

Anonymous
Not applicable
1,227 Views
1 Reply
Message 1 of 2

Get the end point coordinates from an Edge using VB.Net?

Anonymous
Not applicable

I've figured out how to get the end points from an Edge in C#, but I can't get the same commands to run in VB.Net.  Anyone know how?  I have this, but doesn't work:

 

Dim HDAr As Reference = EELine.EndPointReference(0)

Dim HDAs As Reference = EELine.EndPointReference(1)

 

 

 

0 Likes
Accepted solutions (1)
1,228 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

Try this:

 

dim edge as Edge
dim curve as Curve = edge.AsCurve

dim startPoint as XYZ = curve.EndPoint(0)
dim endPoint as XYZ = curve.EndPoint(1)