Select to view content in your preferred language

Script for GO TO XY TOOL Python for ArcGIS 10

3899
2
01-03-2011 05:02 AM
BrandonDavis
Deactivated User
I'm looking to build or find a script that works like the GO to XY tool to use in a model. If anyone has any ideas or information that would be great.

Thanks
Tags (2)
0 Kudos
2 Replies
JohnStephens
Regular Contributor
I don't have a script, but I imagine you would just take the coordinate and then set the data frame extent corners based on a distance of your choice.  Something like:

dfList[0].extent.lowerLeft.X = X1
dfList[0].extent.lowerLeft.Y = Y1
dfList[0].extent.upperRight.X = X2
dfList[0].extent.upperRight.Y = Y2
0 Kudos
JamalNUMAN
Legendary Contributor
I don't have a script, but I imagine you would just take the coordinate and then set the data frame extent corners based on a distance of your choice.  Something like:

dfList[0].extent.lowerLeft.X = X1
dfList[0].extent.lowerLeft.Y = Y1
dfList[0].extent.upperRight.X = X2
dfList[0].extent.upperRight.Y = Y2


I have the same problem.

I wanted to publish the �??go to xy�?� tool but sound it is not in the toolbox

It would be perfect if this tool is developed as geoprocessing tool (model or script tool) such that it can be published easily.

[ATTACH=CONFIG]23098[/ATTACH]

I got help with this issue but sound not to work with me.

http://forums.arcgis.com/threads/78352-Displaying-more-than-one-


Thank you

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos