Import DXF

Running programmatically

Converts an AutoDesk interchange DXF file to shapefile or File GDB layer/s.

Inputs

Outputs

Notes

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name ImportFromDXF
<Input DXF> A String - the full name of the DXF file to be converted.
<output dataset> A String - the full name of the output layer.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "ImportFromDXF", "Input DXF", "output dataset"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "ImportFromDXF" "Input DXF" "output dataset"
.NET using ETGWOutX.dll ImportFromDXF(Input DXF, output dataset)
ArcPy arcpy.ImportFromDXF(Input DXF, output dataset)

Notes:

(Go to TOP)