I am using python, arctoolbox and arcpy 10.0
I am running a script that is tied to an arctoolbox. The toolbox serves to enter in my parameters. I have a feature layer as an input. The feature layer has the .dbf, .prj. shp, etc files.
I am trying to create an output shapefile. The output toolbox parameter is a shapefile. It generates a .shp, .xml, .dbf, but NOT a .prj file
I tried the following code to get the .prj file from my input file to also be included in the output file.
# Toolbox Parameters # Gets input file _in_polyline_m_layer = arcpy.GetParameterAsText(0) _ResultFile = arcpy.GetParameterAsText(6) spatial_reference = arcpy.Describe(_in_polyline_m_layer).spatialReference # Creating my output file arcpy.CreateFeatureclass_management(out_path, out_name, 'POLYGON', spatial_reference)
I keep getting this error: Error 000623: Invalid value type for parameter template. Not sure if the problem is within my script or in the actual toolbox. Any ideas or suggestions would be greatly appreciated. THanks in advance