Hot answers tagged arcgis-10.1
Here's a simple expression with no need to define a function in the codeblock: Headwater = 0 if !NextDown_Copy! else 1 This checks if each value of NextDown_Copy is truthy (i.e. not a null, 0, empty string), and returns a 0 if so, otherwise it returns a 1.
FeatureClassToFeatureClass_conversion is the equivalent tool for the ArcGIS desktop export data function. It almost never is a good idea to use ObjectId as a user reference. Why don't you generate a user id column which you know will be consistent through data exports?object Ids within a gdb are given in reference to other features in feature classes stored ...
I would suggest converting your CAD annotation to geodatabase annotation and trying again. Here is an Esri knowledge base article on how to do so: http://support.esri.com/EN/knowledgebase/techarticles/detail/19961
Python uses None to denote null values. I'd replace your Null with None (no quotes or brackets)and see what you get. Your script is essentially looking for a text string value of null. Furthermore, it's not contained in single quotes, so you're throwing a syntax error twice over.
I hope I understood your problem sufficiently. As far as I got it, I would try the following: # predefine the constant parts of your expression using a variable: constant = "\ftp\raw\YYYYMMDD\Files\Charles" nameVar = "yourobject.Name" # use the built in function .format for setting up the expression for your arcpy.CaculateField_management function: ...
Your indentation is off, you're missing an indent on the "Else" line: def reLabel(typeLabel): if typeLabel == 'BPS Easement': return 'BPS' else: return 'Other'
Well I had that problem with Hec-geoHMS while trying to create the basin model file. To fix this I implemented the steps mentioned above and I did not change the output destinations of any files on any operation starting from (Preprocessing) so by default it stored them in a folder called (Layers). The error didn't happen again due to me "going with the ...
There are two paid products that I know of: DXF Page Exporter - cheap but somewhat poorly implemented with crappy results. Converts everything to polygons - texts and lines included! Real world coordinates export is not precise - seems to be a rough approximation - in their words "data precision loss is due to real-world to pixel coordinate conversion". ...
Only top voted, non community-wiki answers of a minimum length are eligible