- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
This should be quite simple for many of you, I believe.
I need to create 3dpolyline interactively by clicking points on the screen. It seems to me that the SendCommand can't be used in my case since I can't make program hold until the user enters the object and also, it doesn't return a reference to the object created. Please correct me if I am wrong.
The problem I have is that GetPoint returns Object (instead of Point3D) which can not be added to pointCollection. Could you give me some suggestions?
The logic should go like this:
Dim myPoints As New AcadNetGeometry.Point3dCollection
Dim pt3D As AcadNetGeometry.Point3d
Do While True
Try
pt3D = g_oCivil3DDoc.Utility.GetPoint(, "Pick a point:")
myPoints.Add(pt3D)
Catch ex As Exception
Exit Do
End Try
Loop
Dim myPLine3D As New AcadNetDbServices.Polyline3d(AcadNetDbServices.Poly3dType.SimplePoly, myPoints, True)
Thanx,
Solved! Go to Solution.