POST
|
SUCCESS!!!!!! The script was having issues with "FID" and "ID" being in two columns, so I changed all of the ID's to FID's and it worked! Thank you so much! Now that it's working, I can go and start modifying it and breaking it again. I'm seeing how all of this works now and starting to understand the functions. Thank you so very much for taking the time to work through this (really, to do it) for me. I'll play with it a bit and come back to this thread if I get more functionality out of it (or if I'm having trouble- lol). Again, thanks a ton! I look forward to expanding upon what I have and will learn from this script.
... View more
07-10-2014
02:14 PM
|
0
|
10
|
827
|
POST
|
Oh wait, "List index out of range" must mean there's something wrong with my layer name... maybe? I only have one data frame so that shouldn't be the "list" issue. Thinking aloud here... *edit* Nope.... lol. New layer name didn't help.
... View more
07-10-2014
10:59 AM
|
0
|
12
|
2950
|
POST
|
I am using Arc 10.1. Getting closer.... I had to convert the x,y data to a Shapefile so that there were Object ID's and it's happy about that now. I don't want to use the OID field to select the point though, I want to use the Target "ID" field in the excel file. I am getting the following error now: Executing: Zoomto %1% "Z:\Bulldog\Junk\Script Test1" Z:\Bulldog\BaseMaps\ArcScriptTest.mxd ArcTests_01 10000 5000 1000 Start Time: Thu Jul 10 10:30:45 2014 Running script Zoomto... <type 'exceptions.IndexError'>: list index out of range Failed to execute (Zoomto). Failed at Thu Jul 10 10:30:47 2014 (Elapsed Time: 2.00 seconds) I'm not sure which is out of range (zoom levels don't seem to make a difference). I've tried to enter in my ID number in multiple ways, TAR101 or just 101 or %TAR101%, %101%, etc.... Is there any reason why you chose to type in the layer name vs. having a pull-down list (Parameters: Layer)? Do any of the Parameter Property values need to be changed? I see how to make the Scales to a list with Filter:Value List. That could come in handy later...
... View more
07-10-2014
10:50 AM
|
0
|
13
|
2950
|
POST
|
When I unzip the "Toolbox2" file, I get a "Toolbox2.tbx" and that's it. Putting it into Arc, there's no script file in the toolbox. Posting the Python code up here will work- I can add it to a toolbox as a script like I did the previous one. Sorry to be a pain! *edit* Yes, I'd like to just input one ID at a time for now. I may want to be able to enter multiple ID's in the future but never all of them at the same time. Thanks!
... View more
07-10-2014
08:24 AM
|
0
|
15
|
2950
|
POST
|
Ian, I appreciate what you've done for me so far but I'm still very lost. I've tried reading the Arc help pages, plugging in parameters, running the script in Python and in Arc (and sometimes crashing it!) but I'm just not quite getting it. Basically all I believe that is working properly is the mxd file path. I've been able to set the parameters to return a list of layers so I can select the one where my points/table is located that I want to search but I don't know how to set up the script or the parameters to be able to search it. Attached is a lame test file I made with random Lat/Long coordinates and other columns. I'd be trying to search for numbers in the "ID" column to zoom to and print out. Do I need to change the .py file for every ID that I want to search for? That's what the SQL field is for in the parameters GUI, right? Ugh. So frustrating - it just hasn't clicked yet. Any more help please?
... View more
07-09-2014
03:04 PM
|
0
|
17
|
2950
|
POST
|
I built simple websites by hand about 15 years ago, writing all of the HTML code myself- so, real simple stuff compared to Python/true programming but I think some of the same principles apply. If I saw your script, I could least figure out how to remove the portions that I didn't need, and maybe modify them to work how I want. I need to learn the tools for sure, and what Arc "wants" in order to run a successful script. It sounds like in your script, instead of zooming to the polygon, I'd replace that with the ID from my metadata, for starters. So I would add a new toolbox and then add a script into it? (headslap- I know... noob!) I tried that yesterday with random scripts and didn't quite know what the scripts did, but at least I was able to get them to start... Would you mind posting the script here please, and I can try to import it into Arc? Thanks for the response! 🙂
... View more
07-01-2014
10:16 AM
|
0
|
0
|
2950
|
POST
|
Hi all, I am a total newbie to programming anything into Arc with little to no programming experience but I'm finding the need to be able to automate certain processes so now's as good of time as any to start learning. The problem is, I need to get this process going ASAP, of course... What I'm trying to do seems fairly simple: I have a bunch of points with unique ID's and I need to be able to export the area around these points from my base map to JPG's at multiple zoom levels. My process might look like this: 1. Enter the unique ID into a field 2. The program/script would zoom to the point with this ID and export a JPG at two or three different scales. Can I do this in model builder or will I need to write a Python script? Thanks!
... View more
07-01-2014
07:20 AM
|
0
|
21
|
9338
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|