Need "Service Properties" for mapping.TableView
In arcpy.mapping.layer there is a property for "serviceProperties" which gives information on the service, database and authenticationMode of a layer in a mxd. This is very useful because I'm creating...
View ArticleAlternative to Clipping code not working
Hi I am trying to use the following code as an alternative to using arcpy.clip as we are finding the clip funtion very slow when using a large footprint polygon. The inFC layer is a polygon layer (very...
View ArticleCreateImageSDDraft attribute not found
Hello, I am trying to create a script to publish a raster dataset to ArcGIS Server and I was trying to use the CreateImageSDraft in ArcPy. When I run the script I get an error stating "AttributeError:...
View ArticleThe tool is not licensed
Hi, I am have written a python script to import a table into SDE. The script works fine when it is run from Pythonwin but when I run the script as scheduled task I get Error 000824 The tool is not...
View ArticleArcPlot "TEXTSCALE" functionality
Hello, For those of you who remember ArcPlot,, does anyone know how to mimic the functionality of the command TEXTSCALE using python? I have code that makes a selection on an annotation FC in a GDB....
View ArticleCalculate Values problems
I am trying to write a script to calculate values if there are null values in a table however it never calculates any values and I am pretty sure my code is right. Where (Operator) is a field with...
View Articlea program to estimate total frontal area in projected plane .
a program was written in ESRI ArcGIS9.2 software to estimate the total frontal area in the projectedplane normal to the specific wind direction. i didn't find that code plz help
View ArticleSolution to: Dissolve tool does not fully dissolve medium-size dataset
Hi, this is a solution to a problem with the Dissolve (management) tool in Python. Problem description: I needed to dissolve singlepart polygon File Geodatabase feature class with a little over 200 000...
View ArticleCan“t import Arcpy on ArcGIS 10.2
Hi. I simply don“t get Arcpy to import! Command line import arcpy produdes this Traceback: File "C:/Daten/Untersuchungsgebiete/test.py", line 1, in <module> import arcpy File "C:\Program Files...
View Articletruncate trailing digits from string without knowing number of trailing digits?
What's the most elegant way to truncate trailing digits from a string without knowing beforehand how many trailing digits you will encounter. In particular, I want to be careful not to truncate digits...
View ArticleDynamically print the Executing Line of Code?
Kind of an odd question and it may have implications that I'm not seeing, but I'm wondering if anyone knows of a little method to instruct python to print the executing line of code, either before or...
View ArticleCaption font weight of Addin Combobox to bold?
Is there a way to have the caption of a comboxox in bold in a Python addin? thanks
View Articleerror of arcpy for "Make Las Datset Layer" function
Hi, I have been trying to write some python code to access the function of "Make Las Datset Layer" in ArcGIS 10.2. The syntax for this function is: MakeLasDatasetLayer_management (in_las_dataset,...
View ArticleError When Running a Python Script via Task Scheduler on Server
I previously built a model using Model Builder to process some data. The model runs fine when manually started. However, I would like to automate the process via the task scheduler on our GIS server....
View ArticleCompare File Save Date to a Specific Date
I am working on a python script to process mxd files. I would like to only process mxd files that are newer than a specific date. I have been able to compare time from now to a specific date but it...
View ArticleReading Extension data from MXD
Is there a way to read extension data stored in the MXD in Python? We have a third party extension to ArcGIS. This extension stores information in the MXD according to Esri guidelines using the...
View ArticleBeginner having trouble importing arcpy
Hey everybody, I am looking at python for my first time ever, trying to follow a tutorial to create a shapefile for each unique value in my attribute table for a specific field. The tutorial suggests I...
View ArticleUpdate\change features data source.
I have some layers that i need to change the data source for. The current script i have gives me the following error. I don't know why. if anyone would be kind to help me out please? thanks. Code:...
View Articleerror in arcpy sourcecode?
Trying to create any Geometry object results in this message: Traceback (most recent call last): File "C:\Data\Daten\Untersuchungsgebiete\FeatureClass ertstellen.py", line 15, in <module>...
View ArticleArea Solar Radiation from Python script - error
Hello, I am attempting to execute Area Solar Radiation in a stand-alone python script (shown below). The basis for the script was provided in the ESRI tool help. I made a few adjustments to this...
View Article