New answers tagged

1 vote

Updating data sources in .aprx files

I found that the updateConnectionProperties() method in arcpy is either horribly broken, or that there is a significant mis-understanding between the documentation and myself (I'm prepared to admit ...
Son of a Beach's user avatar
0 votes

Resource Allocation tool that is preferential to higher cost pixels?

Just invert your cost distance. Let's say this is cost distance: Normalise it by maximum: Invert (I used Exp(3-3 * "NORMALISED"): Note how cost distance squeezed towards higher values: ...
FelixIP's user avatar
  • 22.9k
1 vote

Packaging projects or maps without data source connections in ArcGIS Pro

What you want to do is sort of an anti-pattern in packaging and sharing: Share something that when given to someone else will have broken data links. The entire point of packaging is to create a ...
KHibma's user avatar
  • 16.8k
0 votes

Opening ArcGIS Pro application from ArcGIS Pro Project (.aprx) file using ArcPy?

you can also use subprocess to do this. In my implementation, subprocess was a better choice. import subprocess myfile = r"C:\Temp\Projects\TestProject\TestProject.aprx" subprocess.Popen([...
mTy's user avatar
  • 79
1 vote

Batch editing ArcGIS Layout file text elements and exporting in ModelBuilder

In ArcGIS Pro .lyrx, .mapx, and .pagx. are a json format which you can manipulate with python. That is the reason you can open it in a text editor. Esri call it CIM - Cartographic Information Model. ...
Xeppit's user avatar
  • 1,305
1 vote
Accepted

AddFieldDelimiters not correctly adding field delimiters in arcpy

I think that you should test this code, which does not use arcpy.AddFieldDelimiters(), because it is a simpler coding pattern and my understanding is that field delimiters have not been required for ...
PolyGeo's user avatar
  • 65.1k
0 votes
Accepted

How to generate sequential numbers for list of input table fields written to a text file (ArcMap script tool)?

You can index a counter. For example: counter = 0 for i in range(5): counter +=1 print('Col' + str(counter)) This code returns or prints out.... Col1 Col2 Col3 Col4 Col5 So in your case you ...
GBG's user avatar
  • 9,664

Top 50 recent answers are included