Extracts the surface grid information from the terrain surface.
ObjectIdCollection ExtractGridded( SurfaceExtractionSettingsType settingsType )
Function ExtractGridded ( settingsType As SurfaceExtractionSettingsType ) As ObjectIdCollection
ObjectIdCollection^ ExtractGridded( SurfaceExtractionSettingsType settingsType )
1// Setup: creates a new, random surface 2// 3TinSurface surface = CreateRandomSurface("Example Surface"); 4 5// Extract a grid from the surface and print information about it: 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 // Gridlines are polyline3d objects 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}
1!ERROR: See log file!