TinSurfaceExtractGridded Method |
Extracts the surface grid information from the terrain surface.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic ObjectIdCollection ExtractGridded(
SurfaceExtractionSettingsType settingsType
)
Public Function ExtractGridded (
settingsType As SurfaceExtractionSettingsType
) As ObjectIdCollection
public:
virtual ObjectIdCollection^ ExtractGridded(
SurfaceExtractionSettingsType settingsType
) sealed
Parameters
- settingsType SurfaceExtractionSettingsType
-
Specify SurfaceExtractionSettingsType.Plan to extract the grid information using the plan visual style settings,
or SurfaceExtractionSettingsType.Model to use the model settings.
Return Value
ObjectIdCollection
An ObjectIdCollection of the extracted entities. The extracted entities are Polyline3d objects.
If the surface has no gridded information, this method returns an empty ObjectIdCollection.
Implements
ITerrainSurfaceExtractGridded(SurfaceExtractionSettingsType)
Example 1
2
3TinSurface surface = CreateRandomSurface("Example Surface");
4
5
6
7ObjectIdCollection gridlines;
8gridlines = surface.ExtractGridded(SurfaceExtractionSettingsType.Plan);
9
10write("# of extracted grid lines extracted: " + gridlines.Count + "\n");
11int i = 1;
12foreach (ObjectId gridLineId in gridlines)
13{
14
15 Polyline3d gridline = gridLineId.GetObject(OpenMode.ForRead) as Polyline3d;
16 write(String.Format(" Gridline #{0}: Length:{1} Start:{2} End:{3}\n",
17 i, gridline.Length, gridline.StartPoint.ToString(), gridline.EndPoint.ToString()));
18 i++;
19}
No code example is currently available or this language may not be supported.
See Also