Maptitude GISDK Help |
Exports features in a geographic file to a DXF file.
ExportDXF(string lyr_set_name, string file_name, array options)
Argument |
Contents |
lyr_set_name |
The name of the layer or selection set to export |
file_name |
A complete path and file name for the new DXF format file |
Option |
Type |
Contents |
Fields |
Array |
An array of strings listing the data fields to be exported, or null to export the geography without attributes |
NAD Conversion |
3 strings |
Input datum, output datum, and conversion file (if needed); the input and output datums should be different |
Projection |
String, array |
The projection name and the array of options |
Transform |
Array |
Array indicating the transformation to apply to coordinates in the file. This can have two forms: 1. An array of two or more four-element arrays containing local and world coordinates for control points, for example, {{real localX1, real localY1, real longitude1, real latitude1}, ...} 2. An array of four elements - {real X_multiplier, real Y_multiplier, real X_offset, real Y_offset} |
Version |
Integer |
The number 12 (the default) or 13, indicating the DXF version number |
For more details on the NAD Conversion option, see Datum Conversions.
For more details on the Projection option, see Using Projections and Coordinate Systems.
SetLayer("County (Low Res)")
qry = "Select * where Population/Area > 100"
SelectByQuery("Selection", "Several", qry)
ExportDXF("County (Low Res)|Selection", "highdesn.dxf",{
{"Projection", "utm", {"zone=12", "units=m"}},
{"NAD Conversion", "NAD27", "NAD83",}
})
Error Type |
Meaning |
Error |
An error occured creating the DXF file (e.g., out of disk space) |
NotFound |
The specified layer or set does not exist |
Function |
Summary |
Frees memory used by GetDXFInfo() |
|
Converts a geographic file between standard and compact format, or creates a new geographic file from a selection set |
|
Collects summary information on the contents of a DXF file |
|
Imports features from a DXF file into a geographic file |
©2025 Caliper Corporation | www.caliper.com |