ExportContours
ExportContours exports the contour line vertices. The Export2 method can also be used to export 2D and 3D contours, but in most cases the ExportContours method is preferable.
Syntax
object.ExportContours( FileName, Format )
Parameter |
Type |
Required/ Optional |
Default |
Description |
FileName |
String |
Required |
|
Specifies the path and file name of the file where the contour line vertices are exported. |
Format |
Optional |
srfConFormatDefault |
Specifies the file type: 3D AutoCAD DXF file, 2D SHP file, 3D SHP file, or TXT file. Default is DXF. |
Remarks
This option is only available with contour maps and it exports only lines. (Contour labels are not exported with the lines.) Use Export2 to export contour labels, axes, and other layers.
Example
This example demonstrates how to export contour lines as a 3D DXF file.
ContourLayer.ExportContours(FileName:="c:\temp\Samples\Contours.dxf",Format:= srfConFormatDefault)
Used by: ContourLayer Object