@@ -0,0 +1,1478 @@
+# -*- coding: utf-8 -*-%0A# ---------------------------------------------------------------------------%0A# Table_to_PointsFeature.py%0A# Created on: 2013-04-08 13:51:49.00000%0A#   (generated by ArcGIS/ModelBuilder)%0A# Usage: Table_to_PointsFeature %3CProjected_Spatial_Reference%3E %3CInput_XY_Table%3E %3CX_Field%3E %3CY_Field%3E %3CModel_Output_Location%3E %3COutput_Feature_Class_Name%3E %3COutput_Feature_Class%3E %0A# Description: %0A# Take table features, project them, and convert them to a feature class%0A# ---------------------------------------------------------------------------%0A%0A# Import arcpy module%0Aimport arcpy, os, gc%0A%0A# Script arguments%0A#Projected_Spatial_Reference = arcpy.GetParameterAsText(0)%0A%0A#Input_XY_Table = arcpy.GetParameterAsText(1)%0A%0A#X_Field = arcpy.GetParameterAsText(2)%0A%0A#Y_Field = arcpy.GetParameterAsText(3)%0A%0A#Model_Output_Location = arcpy.GetParameterAsText(4)%0A%0A#Output_Feature_Class_Name = arcpy.GetParameterAsText(5)%0A%0A#Output_Feature_Class = arcpy.GetParameterAsText(6)%0A%0Adef main(SpatialRef,xy_table,x,y,out_location,out_name):%0A%09arcpy.MakeXYEventLayer_management(xy_table, x, y, %22in_memory%5C%5Cxy_event_table%22, SpatialRef, %22%22) # Process: Make XY Event Layer%0A%09#arcpy.FeatureClassToFeatureClass_conversion(%22in_memory%5C%5Cxy_event_table%22, out_location, out_name, %22%22, %22%22, %22%22) # Process: Feature Class to Feature Class%0A%09outFeatureClass = os.path.join(out_location, out_name)%0A%09arcpy.FeatureToPoint_management(%22in_memory%5C%5Cxy_event_table%22, outFeatureClass, %22CENTROID%22)%0A%09gc.collect()%0A%09return%0A%0A%0A%09%0A%0A

Create Table_to_PointsFeature.py