MaherUPM

Point layer

Discussion created by MaherUPM on Mar 20, 2014
Latest reply on Mar 21, 2014 by xander_bakker
Excuse me, help me
this code does not work when I make it as a script tool also it does not show to any error but no results
??????????????????


import arcpy
arcpy.env.workspace="C:\\test"
arcpy.env.overwriteOutput = True
inX = arcpy.GetParameterAsText(0)
inY = arcpy.GetParameterAsText(1)
pnt=arcpy.Point()
pnt.X=float(inX)
pnt.Y=float(inY)
p=arcpy.PointGeometry(pnt)
newl=arcpy.CopyFeatures_management(p)
OUTp= arcpy.SetParameterAsText(2, newl)

Outcomes