"so output is directed to screen" arcpy.AddMessage(aMsg) # #end checks # if outFC != "#": outFC = outFC.replace("\\","/") fullName = os.path.split(outFC) outFolder = fullName[0].replace("\\", "/") shapeClass = "Point" # #collect the points # outPnts = [] # pnts = PM.grid_rot(x_c, y_c, rot_angle, Cols, Rows, dx, dy) # outPnts.append(pnts) # #optional shapefile creation if outFC != "#": fieldsToAdd = [["Group", "LONG", "9", "#"], ["X", "DOUBLE", 16, 7], ["Y", "DOUBLE", 16, 7]] py_gp.createPointFile (outFC, shapeClass, "#", outPnts, fieldsToAdd, arcpy) arcpy.AddMessage("\n" + "You can join the original table to " \ + "this shapefile table if you want other attributes." + "\n") # #optional csv file creation or output to screen if outCSV != "#": PM.to_CSV(outCSV, outPnts)
"so output is directed to screen" arcpy.AddMessage(aMsg) # #end checks # if outFC != "#": outFC = outFC.replace("\\", "/") fullName = os.path.split(outFC) outFolder = fullName[0].replace("\\", "/") shapeClass = "Point" # #collect the points # outPnts = [] # pnts = PM.grid_rot(x_c, y_c, rot_angle, Cols, Rows, dx, dy) # outPnts.append(pnts) # #optional shapefile creation if outFC != "#": fieldsToAdd = [["Group", "LONG", "9", "#"], ["X", "DOUBLE", 16, 7], ["Y", "DOUBLE", 16, 7]] py_gp.createPointFile(outFC, shapeClass, "#", outPnts, fieldsToAdd, arcpy) arcpy.AddMessage("\n" + "You can join the original table to " \ + "this shapefile table if you want other attributes." + "\n") # #optional csv file creation or output to screen if outCSV != "#": PM.to_CSV(outCSV, outPnts) #