I am working on a script (to publish as a geoprocessing service) that will take multiple feature layers and use them as inputs to the ExportCAD_Conversion tool.
What I ultimately want is a set of checkboxes that allow the user to check which layers they want converted into CAD (from a list of about 10 features).
I saw somebody mention using something like this:
import arcpy Feature = "C:\FeatureLocation" FeatureCheck = arcpy.GetParameterAsText(0) if str(FeatureCheck) == "C:\FeatureLocation": arcpy.AddMessage("Feature") result = arcpy.Exists(Feature) Feature2 = "C:\Feature2Location" Feature2Check = arcpy.GetParameterAsText(1) if str(Feature2Check) == "C:\Feature2Location": arcpy.AddMessage("Feature2") result = arcpy.Exists(Feature2) arcpy.ExportCAD_conversion([FeatureCheck,Feature2Check], "DWG_R2010", r"C:\dwg\test.dwg", "Ignore_Filenames_in_Tables", "Append_To_Existing_Files", "")
This only got me an error that said "Dataset true does not exist or is not supported"
Am I going down the right path?