|
POST
|
If you ran your code from the Python window within Pro, then yes it would return results if you used print statements at points you wanted information to the Python window. But writing a script line by line in the Python window is impractical. If you made a script tool, you can print statements to the geoprocessing history tab and hover-over-popup-window-thing using arcpy.AddMessage() at places in your code you would like info, like print something at each pass of a loop, etc.
... View more
04-12-2019
10:34 AM
|
0
|
0
|
6896
|
|
POST
|
I do this exact analysis for our Fire Department and I just noticed this the other day! Same settings, same station locations, same streets network, different polygons! Kind of troubling eh..
... View more
04-12-2019
10:29 AM
|
0
|
7
|
2973
|
|
POST
|
Also, if you hover your mouse over the little blue arrow next to 'Delete Identical', a window will appear analogous to the foreground geoprocessing window you get in ArcMap when a tool is running.
... View more
04-12-2019
10:16 AM
|
0
|
0
|
6896
|
|
POST
|
I think the equivalent is in the Catalog pane > History tab
... View more
04-12-2019
10:04 AM
|
0
|
4
|
6896
|
|
POST
|
And I assume you're uninstalling through control panel or an uninstall wizard? It's been a while since I uninstalled Arc on my home computer, but I talked to tech support and was given a list of folder paths to check to make sure everything got removed, and I did find some things hanging around after the uninstall. Might not be a bad idea to also do a search on This PC for things like ESRI, ArcGIS, Python, etc and see what may be there still. Here is the list they gave me: C:\Program Files (x86)\Esri C:\Program Files (x86)\Common Files\ArcGIS C:\Program Files (x86)\Common Files\Esri C:\Program Files\ArcGIS C:\Program Files\Esri C:\Program Files\Common Files\ArcGIS C:\Program Files\Common Files\Esri C:\Program Data\Esri C:\Program Data\ArcGIS C:\Program Data\FLEXnet C:\Users\<USERNAME>\AppData\Local\ESRI C:\Users\<USERNAME>\AppData\Local\ArcGIS C:\Users\<USERNAME>\AppData\Roaming\ESRI C:\Users\<USERNAME>\AppData\Roaming\ArcGIS
... View more
04-12-2019
07:47 AM
|
1
|
6
|
1712
|
|
POST
|
How are you installing Spyder? I'm thinking this could have something to do with it.. I would recommend doing a conda install from the 'arcgispro-py3' command prompt. Dan has some awesome blog posts about using Spyder and Python 3.
... View more
04-12-2019
07:14 AM
|
0
|
10
|
1712
|
|
POST
|
Not sure if this is helpful, but would your data fall into any of these categories? https://support.esri.com/en/technical-article/000007177
... View more
04-09-2019
10:34 AM
|
0
|
2
|
4171
|
|
POST
|
To re-open this old thread, as this is exactly what I am trying to find out... Has ESRI added the ability to determine/set whether a layer in the table of contents is collapsed/expanded yet?? I am writing a script that will 'touch' over a thousand layers in my organization's web maps housed in a Pro project, and from what I have read on the Pro/Py3/mp help docs I don't see this as a property of the Layer object yet. Please, someone tell me I am wrong and that functionality exists!
... View more
04-09-2019
10:13 AM
|
0
|
1
|
1691
|
|
POST
|
As far as I know, uninstalling ArcGIS also uninstalls the instances of Python from the machine. What IDE are you using? If using PyScripter or IDLE, what happens when you type 'import arcpy' and hit enter in the interactive python interpreter?
... View more
04-09-2019
09:49 AM
|
0
|
1
|
5260
|
|
POST
|
I have tried this with PyScripter, which by default has always pointed to the 2.7 python installation on any machine with ArcGIS I have ever had. And changing its Python path to the 3 installed buried way down in the Pro folder never has worked. It always resorts back to 2.7. My workaround, I write 2.7 code in PyScripter and use Spyder for 3 code. My cynical thought is it has something to do with ESRI having their hands all over everything in the python installations lol
... View more
04-04-2019
03:46 PM
|
1
|
17
|
2449
|
|
POST
|
Hmmm.. wonder if it has something to do with the feature classes coming from our downstream replica database? The way our organization is set up, we have a parent SDE database and a replica of that which all our webmaps point to. I imagine when you tested this you were working in a single sde and not a replica gdb. I just tested this using the same workflow on the same building footprints layer, 1 coming from the replica and 2 coming from the parent database, and guess what? Fields are off on the parent sde feature class and not on the replica! Can you try and reproduce this on a replica database please? Is there some reason this should be designed to not work on the replica? I used the same workflow as before: create a field info describe object on the layer, loop through setting the desired fields to hidden, then make a feature layer passing in the new field info.
... View more
04-04-2019
09:29 AM
|
0
|
0
|
8697
|
|
POST
|
Still does not solve the problem though.. As I stated we have over a thousand layers (all in SDE) that needs these fields turned off. It's completely impractical to have to export each one to a file geodatabase, then do all these steps to turn off the fields (which is already impractical as is) then export them all back into SDE - which I think would require a delete/append as removing and adding feature classes breaks our replication setup. The fact that it only works on file gdbs, is that not a bug or at least a flaw/limitation that should be looked into by ESRI?
... View more
04-03-2019
01:53 PM
|
1
|
2
|
8697
|
|
POST
|
Interesting idea.. since the workaround I mentioned I first saved a layer file, then turned fields off, then made feature layer and saved a new layer file. Guess what! Fields were off after doing it on the File GDB version of the data. To ensure I was not going crazy, I did the same thing on another layer in the project coming from SDE and sure enough, the output feature layer still had those fields turned on. Attached is the code I used in the Pro Python window.
... View more
04-03-2019
01:22 PM
|
0
|
4
|
8697
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 06-24-2019 01:27 PM | |
| 4 | 04-17-2019 01:02 PM | |
| 1 | 04-12-2019 07:47 AM | |
| 1 | 04-02-2019 12:51 PM | |
| 15 | 04-15-2019 12:52 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|