Original User: luke.kaimI need some help to avoid hard coding values. I think that is my problem and why no matter what the input file is I only get a section of the merge. I need to be able to change the inputs and be able to use merge without hard coding anything to work on other data.
arcpy.env.overwriteOutput = True
arcpy.env.workspace = "C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\test7"
COASTAL_Project_shp__2_ = "COASTAL_Project.shp"
GENERAL_Project_shp__2_ = "GENERAL_Project.shp"
contourPoints_shp = "contourPoints.shp"
APPROACH_SOUNDINGS_Project_shp__2_ = "APPROACH_SOUNDINGS_Project.shp"
# Process: Merge
arcpy.Merge_management([contourPoints_shp,GENERAL_Project_shp__2_,COASTAL_Project_shp__2_,APPROACH_SOUNDINGS_Project_shp__2_], allinputpoints_shp, "SCAMIN \"SCAMIN\" true true false 19 Double 15 18 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,SCAMIN,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\APPROACH_SOUNDINGS_Project.shp,SCAMIN,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\COASTAL_Project.shp,SCAMIN,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\GENERAL_Project.shp,SCAMIN,-1,-1;SORDAT \"SORDAT\" true true false 254 Text 0 0 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,SORDAT,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\APPROACH_SOUNDINGS_Project.shp,SORDAT,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\COASTAL_Project.shp,SORDAT,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\GENERAL_Project.shp,SORDAT,-1,-1;SORIND \"SORIND\" true true false 254 Text 0 0 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,SORIND,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\APPROACH_SOUNDINGS_Project.shp,SORIND,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\COASTAL_Project.shp,SORIND,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\GENERAL_Project.shp,SORIND,-1,-1;DSNM \"DSNM\" true true false 12 Text 0 0 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,DSNM,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\APPROACH_SOUNDINGS_Project.shp,DSNM,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\COASTAL_Project.shp,DSNM,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\GENERAL_Project.shp,DSNM,-1,-1;input \"input\" true true false 4 Short 0 4 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,input,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\APPROACH_SOUNDINGS_Project.shp,input,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\COASTAL_Project.shp,input,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\GENERAL_Project.shp,input,-1,-1;OBJL \"OBJL\" true true false 19 Double 15 18 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,OBJL,-1,-1;VALDCO \"VALDCO\" true true false 19 Double 15 18 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,VALDCO,-1,-1;VERDAT \"VERDAT\" true true false 19 Double 15 18 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,VERDAT,-1,-1;INFORM \"INFORM\" true true false 254 Text 0 0 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,INFORM,-1,-1;MaxSimpTol \"MaxSimpTol\" true true false 19 Double 0 0 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,MaxSimpTol,-1,-1;MinSimpTol \"MinSimpTol\" true true false 19 Double 0 0 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,MinSimpTol,-1,-1;ORIG_FID \"ORIG_FID\" true true false 0 Long 0 0 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\contourPoints.shp,ORIG_FID,-1,-1;Z \"Z\" true true false 19 Double 15 18 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\APPROACH_SOUNDINGS_Project.shp,Z,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\COASTAL_Project.shp,Z,-1,-1,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\GENERAL_Project.shp,Z,-1,-1;id \"id\" true true false 4 Short 0 4 ,First,#,C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\APPROACH_SOUNDINGS_Project.shp,id,-1,-1")