7
votes
Accepted
Turning off layer visibility in ArcGIS Pro with Python
I expect that your for loop never runs, because there is no layout element that matches your "Layer" wildcard.
You should be getting your layers from the map, not from the layout. Use m....
2
votes
Moving points based on updated x,y values
I'll guess that:
1.you have a way to select the points where the new coords are needed.
2.you have two columns with coords.
If thats the case do:
filter the data
get the coords, create Geometry
make ...
1
vote
OS Error CURRENT using ArcPy in ArcGIS Pro
first change this line - the project file extension is .aprx
aprx = arcpy.mp.ArcGISProject(r'C:\Path\To\Projectaprx\test.aprx')
example:
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
arcpy × 10534arcgis-desktop × 1452
arcmap × 1150
python × 1026
cursor × 997
arcgis-pro × 949
arcgis-10.1 × 754
arcgis-10.2 × 711
arcgis-10.0 × 645
arcgis-10.3 × 427
python-script-tool × 419
raster × 392
spatial-analyst × 358
modelbuilder × 312
layers × 309
field-calculator × 296
python-toolbox × 288
enterprise-geodatabase × 277
python-2.7 × 238
python-addin × 237
fields-attributes × 236
error-000732 × 221
select-by-attribute × 219
shapefile × 209
parameters × 203