|
POST
|
Yes -- the 2010 link is the one linked in the Esri Docs I linked. Thanks for bringing up the 2007/Office 2016 issue. Hopefully, the Esri link as it will stay updated with the software as we move forward and some other driver may be needed for ArcMap and Pro and future versions of Office. I wish this wasn't so complicated.
... View more
11-02-2019
05:27 PM
|
0
|
0
|
7360
|
|
POST
|
The approach I was suggesting in the thread was using the Calculate Value tool, not an external script. The %model_variable% syntax only works within ModelBuilder, it would not work in an external script. I have considered putting a proposal to Esri press for a ModelBuilder book and this would be one of the things I would include in a chapter of modelbuilder cookbook calculate value codes!
... View more
10-21-2019
10:13 PM
|
0
|
2
|
3470
|
|
POST
|
projection on the fly JPEG - yuck! Definitely going on a lecture slide!
... View more
10-20-2019
11:17 PM
|
7
|
1
|
5280
|
|
POST
|
Hi Melita, your suggestion works if the coordinate system is undefined, but what if it is labeled incorrectly? All you have left us with is checking the extent against the label which only works in obvious cases like decimal degree data labeled as UTM. I wonder what Margaret Maher thinks as I know she uses this functionality in her great 'cookbooks' to solve problems in her (excellent) Esri press book Lining Up Data.
... View more
10-20-2019
11:13 PM
|
8
|
2
|
4340
|
|
POST
|
Re: Merge Buffers After Creating/Calculating Field has an example. Wow, that is irritating. As a prof who does 12 hours days all term to keep up I feel like I have been taking up this guys slack, ha.
... View more
10-20-2019
11:03 PM
|
0
|
4
|
3470
|
|
POST
|
If you run the tool (or your model) from a Python script (or the Python command line) you can capture messages with arcpy.GetMessages(0) and write them to a text file.
... View more
10-20-2019
09:31 AM
|
0
|
0
|
3303
|
|
POST
|
I found it hard to find the answer in the linked post, so for the good of the thread: Here's a Python expression for Calculate Field to replace the string "nan" to null in a string field. This solution uses a very handy (but IMHO not terribly Pythonic) construct known as a ternary operator. Thanks Dan Patterson for turning me on to these, they are very helpful when doing field calculations! !ACmodeString! if !ACmodeString! == "nan" else None
... View more
10-20-2019
09:07 AM
|
1
|
0
|
5934
|
|
POST
|
I have found the prevalidated field map can sometimes cause problems, and have worked around it by using a Calculate Value function (writing a python function) to build the field map at runtime instead of during model validation. You may be handling this fine just by editing the field map in the model, which will work unless you change the inputs.
... View more
10-20-2019
08:54 AM
|
0
|
6
|
3470
|
|
POST
|
Very nice! I need to learn to look for things in the ribbon, clearly.
... View more
10-14-2019
07:52 PM
|
0
|
0
|
1462
|
|
POST
|
Is there anything different about the third? 99999 errors can happen for many reasons, one is pathnames that are not ideal (short, start with a letter, no spaces in path). The other thing to check is whether the input DEM is integer.
... View more
10-13-2019
06:29 PM
|
1
|
0
|
2479
|
|
POST
|
You could also use the Combine tool and add and calculate a new field in the resulting raster attribute table. The output of Combine gives you every unique combination of inputs. Raster outputs can only be numbers, but fields can be text. So if you Combine integer grids X1 and X2 you'll have Long fields X1 and X2 in the output table. You could then add a text format field and calculate it with the Calculate Field tool (using Python syntax) with an expression like: "{:0>3d}{:0>3d}".format(!X1!,!X2!)
... View more
10-13-2019
05:24 PM
|
1
|
0
|
1770
|
|
POST
|
Another approach is to run Zonal Statistics As Table, using your polylines as zones and your slope raster as the value raster. If you do this be sure and set the environments to rasterize at the cell size of the slope raster (or smaller, if any of your polyline segments are less than the slope raster cell size).
... View more
10-11-2019
10:12 PM
|
0
|
0
|
3586
|
|
POST
|
Elle, Is background processing enabled? I have found sometimes the layer doesn't get passed successfully from ArcMap to the background geoprocessor (or back). This can cause all kinds of unexpected error messages.
... View more
10-11-2019
10:06 PM
|
0
|
1
|
2906
|
|
POST
|
I keep getting many panes stacked up on the right side of my Pro application window (Geoprocessing, Catalog, Identify, Create Feature, etc). Is there a way to clean up the interface by closing multiple panes at once? I think what I want is a way to close everything but the catalog pane. Has anyone found this a problem with the Pro UI besides me - maybe this an idea to submit...
... View more
10-11-2019
09:29 PM
|
0
|
3
|
1585
|
|
POST
|
This is sometimes an issue with Model Builder - if the parameter validation isn't happy, you may be stuck. To get around validation roadblocks you can use a Python script (as you did) or run the tool using a Python function inside a Calculate Value tool, which bypasses the pre-run validation ModelBuilder does.
... View more
10-11-2019
08:35 AM
|
0
|
0
|
1663
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-11-2021 01:26 PM | |
| 5 | 12-10-2021 04:58 PM | |
| 1 | 02-27-2017 09:30 AM | |
| 2 | 12-04-2023 01:05 PM | |
| 1 | 04-12-2016 10:17 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-19-2024
12:10 AM
|