Extracts the surface border information from the terrain surface.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
ObjectIdCollection ExtractBorder(
	SurfaceExtractionSettingsType settingsType
)
Visual Basic
Function ExtractBorder ( _
	settingsType As SurfaceExtractionSettingsType _
) As ObjectIdCollection
Visual C++
ObjectIdCollection^ ExtractBorder(
	SurfaceExtractionSettingsType settingsType
)

Parameters

settingsType
Type: Autodesk.Civil..::..SurfaceExtractionSettingsType
Specify SurfaceExtractionSettingsType.Plan to extract the border information using the plan visual style settings, or SurfaceExtractionSettingsType.Model to use the model settings.

Return Value

An ObjectIdCollection of the extracted entities. The extracted entities can be Polyline, Polyline3d, or Face. If the surface has no border information, this method returns an empty ObjectIdCollection.

Examples

CopyC#
 1// Setup: creates a new, random surface
 2// 
 3TinSurface surface = CreateRandomSurface("Example Surface");
 4ObjectIdCollection borders;
 5borders = surface.ExtractBorder(SurfaceExtractionSettingsType.Plan);
 6write("# of surface borders: " + borders.Count + "\n");
 7foreach (ObjectId borderId in borders)
 8{
 9    // Borders are Polyline3d objects:
10    Polyline3d border = borderId.GetObject(OpenMode.ForRead) as Polyline3d;
11    write("Surface border vertices:\n");
12    foreach (ObjectId vertexId in border)
13    {
14        PolylineVertex3d vertex3d = vertexId.GetObject(OpenMode.ForRead) as PolylineVertex3d;
15        write(String.Format("  - Border vertex at: {0}\n",
16            vertex3d.Position.ToString()));
17    }
18}
CopyVB.NET
1!ERROR: See log file!

See Also