Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all.
I am trying to create a waterdrop in a surface. I have found some examples in Internet, but it does not work. I think it is due changes in versions from 2013.
I have loaded the following two references (not sure if they are the correct or additionals are needed):
Autodesk.AECC.Interop.Land
Autodesk.AECC.Interop.UILand
The code I found is the following, but it does not work when the function "CreateWaterdrop(Point2d location, WaterdropObjectType objectType)" is called:
Dim drops As New ObjectIdCollection()
For Each triangle As TinSurfaceTriangle In surface.Triangles
Dim centroid As Point2d = _
getTriangleCentroid(triangle)
' calculate water-drop for the centroid
Dim oid As ObjectIdCollection = _
surface.Analysis.CreateWaterdrop(centroid, _
Autodesk.Civil.Land.WaterdropObjectType.Polyline3D)
' Save all the water-drops
For Each id As ObjectId In oid
drops.Add(id)
Next
Next
I understand the code, but my problem is the function...
Thanks in advance.
Solved! Go to Solution.