Change text element in data view
Hello, Is it possible to change the text of a textelement in the data view? I know this is possible with elements created within the layout view using 'arcpy.mapping.ListLayoutElements' but i can not...
View ArticleCalculating values for point percolation's
Hey Esri forums, once again i find myself stuck and in need of someone to point me in the right direction... I need to find some python or VBA script that will allow me to calculate a linear...
View ArticlePython Add-In Q: Polygons
I need to replicate the Select By Polygon tool (minus the selecting step). I simply need to be able to draw a temporary polygon to 'do stuff' with. What am I missing here? --- I see a way to set...
View ArticleExportReport Function, Report Title Property Limitation?
I am using the ExportReport function in a script. I've noticed that the report title doesn't populate if the string is too long. If I have something like: Quote: Significant Point in Polygons within...
View ArticleStrange bugs or functionality with mapping module
I have two problems with the same script that worked in 10.0 but now is throwing some serious curveballs at me using 10.1. Problem #1 I have a script that worked fine in 10.0 giving a list of some...
View Articlearcpy.mapping: Determine if nothing is selected
I just need to be able to determine if nothing is selected. SearchCusors and GetCount_management only return either just the selected features or all of the features. ...pretty sure I am missing the...
View ArticleArcPy mapping - MapDocObject: Unable to save Attribute Error
I’m running a script to update the SDE Connection file path. This works fine. But I’m getting an output error – SOMETIMES! The error occurs at the Save Map statement: File "c:\program...
View ArticleAdd new Text Elements
Is it possible to add a new Text Element to a layout view? I am building a new Python Add-In and this ArcObjects developer is getting frustrated with the amount of limitations I am finding in the...
View ArticleCreate Lines Between Points With Matched Attributes
I have a data set with beginning and ending points for events. I have geocoded the data set twice, once for each location, and I would like to figure out a way to draw a line from each starting point...
View ArticleUpdate SDE
I have two tables in SQL Server, one is my main table called permits, the other is new permits which I have created from CSV using python. Is there a way to insert the rows from new permits into the...
View ArticlereplaceDataSource in layer file (not mxd)
My world: Win7, ArcGIS 10.0 SP1, Python 2.6.5 I am attempting to update a group layer file with new data source locations (FGDB moved from one location to another location). I get no errors running...
View ArticleWord spacing in labels
I've got an easy one for you. How do you add a space between field names in a feature class label in python using lblclass.expression? I was using [Field1]& " " &[Field2] and can't find the...
View Articlecontrolling cell size of output in raster operation
Another updating from 9.2 to 10.1 script issue. I have a Python script I'm updating, wherein there is a raster calculator calculation made via a string expression I want to update. The calculation is a...
View ArticleRaster calculator expressions - not transferable to 10.1?
Another question! I am in the process of updating a bunch of scripts written not by me, that work under arc 9.2, to work under 10.1. The original author used many raster calculator string expressions...
View ArticleWant to dissolve adjacent polygons but no common edges.
I have a bunch of parcel data, I want to join the polygons basing on the same owner name. Even they are not touched, I want merge them together, such a 100 feet tolerance. The purpose is to show the...
View Articlepython toolbox "no syntax errors" yet non-functional
I make many small changes to the code in my Python Toolbox on a daily basis, and therefore often refresh the toolbox to solidify the changes before running the tool. Usually when I have a syntax error,...
View ArticlePython AddIn: How can I package/deploy a custom lib with my python addin?
I have a couple custom .py modules that live in my C:\Python27\ArcGIS10.1\Lib directory. I "import" these into all my tools (mainly custom utils that I use alot). I've created a python addin.esriaddin,...
View ArticleAdd and Calculate Field within a python script
I'm trying to build a tool in python that will add a field and calcuate the field that was just added to the script. I'm getting error 000732: Input Table: Dataset test.txt does not exist or is not...
View ArticleUse pythonaddins.GPToolDialog to open "Create Feature Class" Tool?
I have a new MyCustomToolbox.tbx that has a couple of "Scripts" I have created and added to it that I can invoke/open with the following: Code:...
View ArticleHow to get back "Edit with IDLE" in Right-Click Menu
So I installed the 64-bit background geoprocessing service along with SP1 and all of my scripts broke (and python thought I was running an AMD64 when I am running Intel). So after uninstalling my...
View Article