Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Point layer

$
0
0
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)

Viewing all articles
Browse latest Browse all 2485

Trending Articles