Jump to content

 
Photo

Bulk input DXF or NTS ARCmap

- - - - -

  • Please log in to reply
3 replies to this topic

#1
mhampson4

mhampson4

    Contributor

  • Validated Member
  • PipPip
  • 15 posts
  • United Kingdom

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

#2
Ninomax

Ninomax

    Contributor

  • Validated Member
  • PipPip
  • 37 posts
  • Vietnam

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

In this case, i think scripting is always the best workaround

#3
mhampson4

mhampson4

    Contributor

  • Validated Member
  • PipPip
  • 15 posts
  • United Kingdom

Thankyou

Do you know of any input scripting tools I can only find export scripts?

#4
david17tym

david17tym

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 105 posts
  • Gender:Male
  • Location:North Wales
  • United Kingdom

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->