1,805 reputation
11134
bio website arabellasmusings.wordpress.co…
location South Africa
age 25
visits member for 2 years, 1 months
seen Apr 15 at 16:10

I have a Bachelor of Science in Applied Geoinformatics, with my main areas of study being Geography and Environmental Studies, GIS, Computer Science and Information Systems. I have always had a passion for computers and geography, so studying and working in the GIS field has given me the best of both worlds.

My questions/answers will be written in South African (UK) English - please do not "correct" my spelling.


Feb
24
comment Invert Clipping for Data Driven Pages
I think the OP can just set the Page Definition Query to not match the current page, so that arcpy would not need to be used as the question does not indicate a need for it based on the current information.
Feb
18
comment Why and How does copying and pasting a “problem” model with errors in it into a new empty model fix the model (ArcGIS, ModelBuilder)
I have mentioned this issue before in previous comments/answers, but anecdotally I can say that there doesn't seem to be an answer to this. After repeated use/changing parameters over a period of time, the model simply becomes what I like to call "tired". It was the final straw which pushed me into Python scripting completely.
Feb
17
comment Use 'if' statement in ModelBuilder to stop model
@Steve set the output of Get Count as the precondition to whichever tool you are wanting to get a true/false condition for.
Feb
14
comment Use 'if' statement in ModelBuilder to stop model
@Steve Regarding your first issue, that normally happens when the model gets "tired" i.e. you have been fiddling with it for a while. I know that's not really an explanation but in my experience that is what happens to models. For best results you will need to open a new model and set it up again like your old one. Also, the Get Count tool output can be used as true/false, without needing to write the conditional test.
Jan
31
comment SQL expression to python expression
Could you post your Python code so we can see where the actual problem is?
Dec
5
comment How to call arcpy.RefreshActiveView() every 5 seconds using ArcGIS Python?
Your first code snippet is correct, but it is an infinite loop though. In your question you say you want it to run infinitely, but are you sure? Do you perhaps mean you want it to run for an extended period of time and then stop?
Nov
25
comment data driven pages format
I have done this as well. As good practice now I normally use a "turned off" version of the layer as the ddp source, then anything with the labels, page definitions, symbology etc I set on a copy of the ddp layer (or two copies, depending on the project). I find it easier that way, so I know at a glance LOTS DDP is the ddp source while LOTS contains the actual visible features.
Nov
20
comment How to position callout bubble leader using maplex?
Agree with @johns. Where I have had Maplex issues with about 10% of my labels, I would either use 2 classes with SQL queries to include/exclude the problematic labels, or if there were few enough (less than 30), I would convert to annotation and position them manually. I would then use definition queries to turn them on/off as needed through Python.
Nov
19
comment How to Calculate fields for attribute table using Model Builder
Can you be a bit more specific - what are you trying to calculate in the fields?
Nov
18
comment How to get XY coordinates and field values for each row in a SearchCursor?
I like PolyGeo's answer, but I like yours a bit more as it's a bit more obvious especially for beginners.
Nov
14
comment How To Export Selected Data Driven Pages to PDF?
@RyanDalton +1 for the ESRI blog link, I used that post as my starting point for doing DDP in Python and it really helped me with many scripts doing various things.
Nov
13
comment Iterate Workspaces in Modelbuilder not executing all tools
I figured this is a bug in ModelBuilder, so I've long sinced moved to Python to do this sort of thing for me.
Nov
6
comment How to Receive an Email after a script has run?
Excellent, have been meaning to look into this as well.
Nov
6
comment Python If else statements
This sounds more like you want to set up subtypes and attribute domains. If you set up a subtype on field A, then using an attribute domain the dropdown list in Field B would change accordingly. This would ensure that if NI is chosen, Non Irrigated is automatically populated, else the dropdown list will appear.
Nov
1
comment Can't load layers into ArcGIS Viewer for Silverlight
Have you published a map service containing those layers?
Oct
30
comment Changing page orientation using data driven pages
I've learnt a lot since I've asked this question, so I did come to the conclusion that I would need two different templates. I ended up creating a python script to pull everything together for exporting.
Oct
30
comment Changing page orientation using data driven pages
@PolyGeo no it's not possible to set the page orientation as an attribute of the DDP.
Oct
25
comment ArcGIS modelbuilder: Iterate through Excel sheets?
Python might be better for this case, as it will handle it better.
Oct
17
comment How to assign values to field using if/then logic involving multiple fields?
The field names should be surrounded by ! not [. I think the OP has not changed the parser to Python in the Field Calculator.
Oct
17
comment issues with updating data source, script runs but nothing happens, arcpy
You don't need to save the mxd after each data source is replaced, rather save once the for loop has finished with the layers (shift mxd.save() four spaces back).