Hi
I am trying to input alot of files in DXF or NTS format (it doesnt matter which as I have both) into ARCmap to give elevation data over the south of the UK. The project is as a fourth year masters project for the University of Leicester.
The problem is that with so many files it will take several weeks I do not have.
Is their a way to bulk input the data into ARCmap or another program to link into ARCmap?
Any help would be greatfully appreciated.
Thankyou
M.Hampson
Bulk input DXF or NTS ARCmap
Started by
mhampson4
, Nov 01 2010 01:49 PM
3 replies to this topic
#1
Posted 01 November 2010 - 01:49 PM
#2
Posted 02 November 2010 - 03:31 AM
In this case, i think scripting is always the best workaroundHi
I am trying to input alot of files in DXF or NTS format (it doesnt matter which as I have both) into ARCmap to give elevation data over the south of the UK. The project is as a fourth year masters project for the University of Leicester.
The problem is that with so many files it will take several weeks I do not have.
Is their a way to bulk input the data into ARCmap or another program to link into ARCmap?
Any help would be greatfully appreciated.
Thankyou
M.Hampson
#3
Posted 02 November 2010 - 07:29 AM
Thankyou
Do you know of any input scripting tools I can only find export scripts?
Do you know of any input scripting tools I can only find export scripts?
#4
Posted 02 November 2010 - 10:57 AM
typing import cad into arcgis help I found:
"This Python sample demonstrates how to import CAD data from multiple drawing files in the same folder, into a single feature class using the Merge tool."
# Name: ImportCADandMerge.py
# Description: Imports and merges polylines from one workspace into a single feature class
# Author: ESRI
# Import system modules
import arcpy
from arcpy import env
env.workspace = "c:/data/columbia"
# Create a value table that will hold the input feature classes for Merge
vTab = arcpy.ValueTable()
# Step through each dataset in the list
for fd in arcpy.ListDatasets("*", "CAD"):
layername = fd + "_Layer"
# Select only the Polyine features on the drawing layer b-railroad
arcpy.MakeFeatureLayer_management(fd + "/Polyline", layername, "\"Layer\" = 'B-RAILROAD'")
vTab.addRow(layername)
# Merge the CAD features into one feature class
arcpy.Merge_management(vTab, "c:/data/columbia/Columbia.gdb/Railroads")
Hope this helps,
Dave
"This Python sample demonstrates how to import CAD data from multiple drawing files in the same folder, into a single feature class using the Merge tool."
# Name: ImportCADandMerge.py
# Description: Imports and merges polylines from one workspace into a single feature class
# Author: ESRI
# Import system modules
import arcpy
from arcpy import env
env.workspace = "c:/data/columbia"
# Create a value table that will hold the input feature classes for Merge
vTab = arcpy.ValueTable()
# Step through each dataset in the list
for fd in arcpy.ListDatasets("*", "CAD"):
layername = fd + "_Layer"
# Select only the Polyine features on the drawing layer b-railroad
arcpy.MakeFeatureLayer_management(fd + "/Polyline", layername, "\"Layer\" = 'B-RAILROAD'")
vTab.addRow(layername)
# Merge the CAD features into one feature class
arcpy.Merge_management(vTab, "c:/data/columbia/Columbia.gdb/Railroads")
Hope this helps,
Dave
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account

United Kingdom
Back to top
Vietnam








