I am updating old VBA code that creates a cogo point at each Tintriangle vertex. In VBA the surface object had a points property that would give you a list of doubles that could be passed to a method in points.
VBA code:
If (TypeOf oEnt Is AeccSurface) Then
Set oSurface = oEnt
Dim vPoints As Variant
Dim cCount As Integer
vPoints = oSurface.Points
cCount
= (UBound(vPoints
) + 1) / 3 g_oDocument.Points.AddMultiple cCount, vPoints, 0
Else
ThisDrawing.Utility.Prompt "A valid object was not selected"
End If
I am struggling to do this in .NET as I am not finding anything that exposes points other than getting the triangle collection, iterate each triangle, iterate each edge, collect point locations and the remove duplicates and finally add to the drawing as cogopoints. I am hoping there is less complicated way to do this.
Thank you,
Stacy