Converts an AutoDesk interchange DXF file to shapefile or File GDB layer/s.
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. |
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:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.