script binding on Toolbox Problem
Hello to all, i wrote a pyton script, which runs perfectly by double click *.py either *.pyc under python 2.7 with Arceditor 10.2.1 when i bind the compiled script to a custom Toolbox it will fail by...
View ArticleNaming a created PDF with the DDP title
Good Day, Ok so first I'm a very fresh beginner to Python and using it to help automate my map book creation. Here is what I am looking to do. I have several mxd files (one for left page, one for right...
View ArticleCombining several PDFs into a single one
I have created some pdfs through a stand alone script, but would like to be able to create one single pdf file and not 100+ single page pdf files. My naming convention has a different name for Left and...
View ArticleArcPy License question
Is it permittable to serve up ArcPy based functionality through a web service from a machine that has ArcGIS Desktop installed (ie not using ArcServer)? I know its not the best approach, but someone...
View ArticleAnalyze Map Extent for Visible Layers
is there a pythonic way of determing if a layer is visible within the dataframe extent in arcpy 10.1? Not unlike how the option in a legends property dialogue box--> Items tab--> Map Extent...
View ArticleTrouble With Snap_edit Data
I have a Python script that takes a map file containing a hydrography layer, loads a CSV file into a layer containing a set of points, and then snaps those points to the hydrography layer. After doing...
View ArticlePython and toolbox interface
How do use python open a toolbox interface in ArcGIS?Thanks a lot!
View ArticleImport arcpy problems with migrating from 10.0 to 10.1
Windows 7 Pro SP2 32 bit ArcGIS Basic (ArcView) 10.1 So I finally moved away from 10.0 to 10.1. I seem to be having some problems with my Python scripts. None of them work, and I think it may be a...
View Articlearcpy to handle topology error insoector
Hi there, I am now want to do topology check use python, but I don't whether arcpy can realize the function in error inspector. May I call error inspector and get the error records(something like...
View ArticleCan I validate topology using python script when ArcMap is open?
Hi everybody, I am testing on validating topology using python.The situation is when I run the script when arcmap is open, an error occurs which indicates the topology has already been opened (FDO...
View ArticleError in getting parameter as text
Dear sir When I try to run a python script. I cant get the parameter as text. the following error message is display when it run This parameter is save from the calender. Traceback (most recent call...
View ArticleArcGIS 10.1: How to create several Parcels from existin Points via Python...
Hi all, I just learn the Minimum Bounding Geometry (Data Managements)/Geoprossing to do "Convex_Hull" from "Multipoint Input" in my ArcGIS 10.1 - it just produces a single parcel from the points in the...
View ArticleHow to get layer definition from web map and pass to python to print PDF?
Hello, I am trying to do a print PDF function on a web application using python. I got the sample here (http://www.arcgis.com/home/item.html...2002b2d85ea5de ). But I could not find anywhere that I can...
View ArticleLayers in Current Visible Extent
Greetings, I'm looking to turn off all of the layers NOT in the current visible extent. I figured a Python Add-In would be the easiest way to achieve this functionality. I've snooped around the arcpy...
View ArticleDeleting a portion (part) of a multi-part line featue class
I have a line feature class with multi-part geometries. I would like to cursor through the geometries and delete any parts that are not the first part. Does anyone have any code to share?
View ArticlePython Script to Disconnect all users from a database
I am not very Python savvy... trying to develop a script to disconnect all users from a 10.2.2 SDE database. Can anyone tell me what I'm doing wrong? import arcinfo import arcpy # Variables:...
View ArticleA problem with Tkinter for Python
I have a problem with Tkinter. I use the python compiler of the ArcGIS and I can make a UI.I can move and close the UI.If write the same script in a button's event,I can also get a UI,but,I can not...
View ArticleAutomate Field Value Changes on Date
Hello All, I an woefully inadequate when it comes to developing Python code. I am nearing completion of the AGOL Polling Place Finder application for 10.2 with some relatively basic customizations. I...
View ArticlePython/MySQL syntax error
Hi All, First off I'm new to Python coming from a Java/C++ background. I've created a simple Python program that will connect to a database and query it returning the results from the querys. I receive...
View ArticleHow to remove a leading space
Hello, in some lines in a field I have a leading space before the letters. I need to remove this space. Is there a simple field calculation code to remove the space, or simpler, to remove the first...
View Article