Rebuilds the surface by processing all the operations one by one in the list.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
Remarks
You can check whether the Surface needs to be rebuilt by checking the IsOutOfDate property.
Example 1
2
3
4[CommandMethod("AddSurfaceBoundary")]
5public void AddSurfaceBoundary()
6{
7 using (Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction())
8 {
9
10 ObjectId surfaceId = promptForEntity("Select the surface to add a boundary to", typeof(TinSurface));
11 ObjectId polyId = promptForEntity("Select the object to use as a boundary", typeof(Polyline));
12
13
14 ObjectId[] boundaries = { polyId };
15 TinSurface oSurface = surfaceId.GetObject(OpenMode.ForWrite) as TinSurface;
16
17 try
18 {
19 oSurface.BoundariesDefinition.AddBoundaries(new ObjectIdCollection(boundaries), 100, Autodesk.Civil.SurfaceBoundaryType.Outer, true);
20 oSurface.Rebuild();
21 }
22
23 catch (System.Exception e)
24 {
25 editor.WriteMessage("Failed to add the boundary: {0}", e.Message);
26 }
27
28
29 ts.Commit();
30 }
31}
See Also