Can you check out Publisher extension with arcpy?
Is it possible to check out the publisher extension with arcpy or python somehow? I do not see Publisher available in the extension codes.
View Articlesequential number for each class in a field
hello everyone. i know a script which is used for sequential number generation in a field. the script is given below. Expression: autoIncrement() Expression Type: PYTHON_9.3 Code Block: rec=0 def...
View ArticleSave To PDF Script Prints at Wrong Scale
I am trying to use the SaveT To PDF Example by Ismael. I successfully set up the template for my use. My issue, is the scale at which the PDF prints. In the MXD, the Layout is set to the County but the...
View ArticleHow to overwrite a raster data?
Code: tempId = Raster(dsm_file)*0 tempId = SRTran.GetId(tempId) the line 1 means that I create a empty raste, named tempId. and the line 2 means that i use the 'tempId' to do a Map algebra, and i hope...
View ArticleUsing a wildcard inside DeleteField_Management?
Hello, I am trying to put a wildcard inside this delete field. I am using PythonWin 2.6 and hitting Feature Class data in SDE. I already use a system argument inside the field name and had to convert...
View Articlearcpy.Snap_edit ERROR 000732
Hello, I'm having trouble getting a simple snap function to work in a python script. The error that I get is: arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732:...
View ArticleProduction of Graphs from Geodatabase Table
What I have is a table I produced from our Customer Information System showing the billed KWH Usage and KW Demand for a ALL electric meters over a period of time (From July 2011 to July 2013). There...
View ArticlePython Code to Load Feature Service to AGOL Not Working- 10.2 Issue?
I have been using the code provided by Jeff Moulds in this thread to add feature services to AGOL: http://forums.arcgis.com/threads/806...d-USING-PYTHON It has worked just fine in 10.1 but now I am...
View ArticlePyScripter seems to be grabbing an arcinfo license
Any time I start PyScripter it grabs our floating Advanced (arcinfo) license if it's available. I'm not talking about when the script is actually running (we've solved the problem in that context). I'm...
View Articlenavigate relationship class
Greetings, My appoplogies if this has been addressed in another post, but I have been unable to find it if it has. Can someone give me any ideas on how to, using arcpy (or c#), navigate relationship...
View ArticleScripts to find all possible routes between ODs?
Our team need to explore all possible routes between start and end points over a network. I know TransCAD has the functions that can do the job. But given the limited budget we can not use it just for...
View ArticleWhy Esri_anonimous ?
I am creating a python toolbox that will be used when the user edit a feature service. I created fields to enable editor tracking. I want users to be able to identify who created or edited the...
View ArticleExecute Python at MXD Open?
Is it possible to have Python code execute in ArcMap after an MXD has opened? I have a way to open an MXD through Python, but I then want another piece of code to execute once the MXD file has opened....
View ArticleIf else statement
I am modifying a script suggested in a prior thread. http://forums.arcgis.com/threads/902...ght=jsmith0705 I want to be able to select a line, determine if the ARCLENGTH field has a value greater than...
View ArticleCalculate Field Issue/Script Setup Question
I am attempting to add a new field to a feature class and then populate it based on a selection by attribute and then location. I originally setup this script to use CopyFeatures and it worked just...
View ArticleField Indexing, arcpy.SearchCursor
Does the arcpy.SearchCursor function support field indexing? In the sample script below, can I sent my cursor to loop through the values in the first field by setting an index to search the first...
View ArticleAccessing Paths for rasters in a mosaic dataset
Hi everybody! Can anyone direct me to the best method for getting the paths to rasters that are managed by a mosaic dataset. I see that there is a raster object stored in the attribute table of the...
View ArticleUsing one element of a large field for some math with python
I have a ridiculously long .dbf (around 15 million rows). One of my columns contains four values separated by commas. I tried the easy way, which was to separate them using the field calculator, but...
View ArticleFormatting label texts with python
Hello everyone. I am new to python programming and just managed to write a code to label features with particular field. Here is the code that I am using for labeling. After specifying map and layer.....
View ArticlePython Toolbox causes serious Application Error in ArcCatalog
I have an intermittent error, which other colleagues have experienced as well, where having created working python toolboxes ArcCatalog 10.1 will crash on opening with a serious application error. I...
View Article