Issue with executing for loop
Hi Everyone, The goal of the code is to test how similar two polygons are. I do this by comparing bounding boxes as well as shape area. The code is working and giving correct printed values, but the...
View Articleinline if else statement (?) for an exported python script
I am trying to use an inline if - else statement in an exported python script. (Arc10.1, python 2.7) Here is sample data: OBJECTID CODE TYPE 1 R <null> 2 S <null> 3 R <null> 4 D...
View ArticleTable Join/comparison between different gdbs
I have a process that copies data between dev and UAT. There is a need for a QA script that can confirm that the data copies across cleanly. We are primarily interested in whether the "Shape_Area" is...
View ArticleScript tool to transfer the “Add” - “Delete” tables (Delta Tables) into the...
Script tool to transfer the “Add” - “Delete” tables (Delta Tables) into the base table, I have been looking for a SCRIPT TOOL that transfer the content of the “Add” “Delete” into the base table...
View ArticlePython Toolbox Field Mappings parameter behaviour
Hi guys, I'm a newbie in Python toolbox creation. After sometimes researching on internet, I could not found the right example for Field Mapping parameter behavior. I really wants to know how is...
View ArticleVideo for using addins with Python?
Does anyone know of a video, on youtube or elsewhere, that talks about using python with addins? I would like to provide a link for my students to access and watch. Thanks for your help.
View ArticleReset Python Add-in
I have a toolbar which enables a second and third combobox when a selection is made on the previous. I would like to add a button to 'reset' the toolbar. Basically clear the selection and return...
View ArticleCreate points with Mouse click
I have a VBA button that allows me to click on my layer and generate a point by a MouseDown event. It populates a certain filed with the distance between the first temp point and the second temp point...
View ArticleIf else statement not working in Python
Hello, I have a Python script to generate an automated mapbook. I want to be able to adjust the data frame scale based on the size of the parcel. My if/else statement is not working. I think it's...
View ArticleUsing Intersect_analysis in script
Hello everyone, looking for some guidance. I want to intersect three features but I want to intersect 2 first then do some other stuff to that output then intersect that output to the next feature. I...
View ArticleIf a feature class is in list → Process
Hello, I am running into a few errors trying to do something seemingly simple. I would like to generate a list of feature classes in a set of subfolders. If there is a specific feature class name in...
View ArticleGet script folder from a script tool in a toolbox
Hello, I have some custom ArcGIS toolboxes containing script tools (v10.0 and v10.1) written in Python. Is there a way in Python to get the folder path of the script tool that is being executed? I...
View ArticleInvert method problem
Hi Experts I try to write some codes to hide unselected features in my map. I have written some part of it. The first part of the codes must find selected features. This part works as follows. Code:...
View Articlepython labeling
Hi - I'm just looking to start learning Python. Starting with the absolute basics, I'd just like to make some labels with it. On the help page here:...
View ArticleCalculating fields in a script
I am working on a script that automates several steps in a workflow process we use. What I want to do is calculate certain fields like I can when I use Field Calculator while working on a feature in...
View ArticleHow to Concatenate Fields
I have an attribute table with approx 1000 records. There are two Fields I care about: Name and Pg_Number (see attached pic) I would like to consolidate the fields so that I received an output or a new...
View ArticleInputing NetCDF variables into arcpy script
Hi all, I'm working with NetCDF data that it organized by month, I only need a certain portion, within the range I specified I am converting their date format to the ArcMap recognized date and time...
View ArticlePythonaddins onStopEditing save_changes
I have written an add-in with the new pythonaddins class, I want code to execute when editing is stopped AND data saved, not when editing is stopped and edits NOT saved. Here's an extract of the code,...
View ArticleCode for connection login/password
Hi Python users I am new to python. I created a basic select/buffer/union/disolve type script to extract shp files relating to a specific attribute from within a number of sde line features. So far it...
View ArticleRecalculate Extent
I want to recalculate the Extent of some feature classes. I found some vba, c# code but the job has to be done with python. arcpy.Describe will show me the extent but there seems to by no way to set...
View Article