I have a model that exports GIS data to CAD. The model has two nested models, the first collects the data to be exported and the other exports it. The export to cad tool has a seed file parameter and I would like to make this a drop down box of two seed(.dwg) files that I have. I am able to make it a parameter but not a drop down list. I thought I could go into properties-->parameters-->filter but nothing happens when I click on the "filter" box which is set to none. What am I missing?
I am assuming you have 2 cad files that exist and you want to use one of these as a seed file?
This can be achieved by creating a string, populating it as a list and converting the string into a CAD dataset.
The image below shows a model and how to set the value list for your drop down:
The calculate value tool is set up as shown below:
When you run this model you will be offered a drop down listing only 2 full paths to the CAD files. These must obviously exist.
As you are now asking about a different issue I am providing another answer.
I created a very simple python script as shown below that would take the input parameters and convert to CAD, the seed file can be a simple full path string to an existing CAD file.
import arcpy # Get parameters fl = arcpy.GetParameterAsText(0) output = arcpy.GetParameterAsText(1) seedfile = arcpy.GetParameterAsText(2) res = arcpy.ExportCAD_conversion(fl,"#",output,"#","#",seedfile) if res.status == 4: arcpy.AddMessage("Success!")
The properties of the script are set up as shown below, make sure your output is set to output: