Hi Hani, Use the below code up to they are fixing the GOTOXY COPY THE BELOW CODES TO A NOTEPAD AND SAVE AS GOTO.PY (WITH PYTHON EXTENSION) import arcpy xyCoordString = arcpy.GetParameterAsText(0) xStr,yStr = xyCoordString.split(",") xFloat = float(xStr) yFloat = float(yStr) mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] newExtent = df.extent newExtent.XMin, newExtent.YMin = xFloat - 5, yFloat - 5 newExtent.XMax, newExtent.YMax = xFloat + 5, yFloat + 5 df.extent = newExtent arcpy.RefreshActiveView() Steps. 1 Open ArcCatalogue 2 Tool Boxes- Mytool Box- Right Clk- Add New Script 3 Chang the VALUES in Add Script Window Such as name & Label 4. Select the GOTO.PY 5 In the parameters tab under Display add "Enter X,Y" with "string" as a data type . 6 Finish
... View more