I am looking to batch process shp. to .dwg files. I have ArcMap 10.2 with Standard licence so I am able to convert each file separately. However, with over 200 files, this is a long process. Does anyone know if there is a way to do this is a batch (or a toolbox). Any help will be very much appreciated!!
Solved! Go to Solution.
Matt,
You would use model Builder to build a model of this batch process.
Matt,
You would use model Builder to build a model of this batch process.
Thanks Robert for your help. I will give this go and report back. Sounds like a plan though, I was toying with model builder rather than scripting. Hopefully all will go well!
Hi Robert this has worked a treat... thanks very much. One further question which you may be able to help with, no worries if not. The CAD output file I have processed is essentially a copy of a Topographical layer; simple lines. What i need to do is create is a more complex dwg file with road lines, points and annotations. I would normally do this be adding these features in the big 'Input Features' box. Is there a way to do that in this batch process?
Again, any help would be very much appreciated!
Matt,
I am not sure how you would automate/batch that process. Are you saying that every shapefile that you have in the file you are iterating over will be added to one CAD file?
Also don't forget to mark this question as answered by clicking on the "Correct Answer" link on the reply that answered your question.
Hi Rob,
Dont worry about the last Q, i know the issue - I rather stupidly used the wrong shapefiles (which weren't prepared for AutoCAD) - i.e shapefiles created without LAYER, COLOR etc so when pulled into CAD there wasn't any differentiation/layering.
PS. I think i have now checked 'answered'.
Thanks for all your help - lifesaver!!
Robert Scheitlin, GISP has the easiest answer. Modelbuilder is very useful, it a bit quirky to figure out at first.
I will also add that the batch process can also be done using Python if you are familiar with it.
What is Python?—Help | ArcGIS for Desktop
A quick tour of Python—Help | ArcGIS for Desktop
FAQ: What version of Python is used in ArcGIS?
Chris Donohue, GISP
Matt:
If you have the business need to repeat this process on a regular basis (e.g. weekly, monthly) then I would suggest converting the model to python and then using Windows Scheduled Task to run the process (maybe at night when no one is accessing the data).
Michael, thats a great idea, I'll look into it... thanks for your help!
Should be said, if you have a working model, note that you do can easily run the model from Python with a short python script that looks like this:
import arcpy
arcpy.ImportToolbox(r"<path to toolbox>My Tools.tbx")
# My Tools.tbx has alias mytools, and a tool named MyModel
arcpy.mytools.MyModel( ... ) # you can pass parameters