Hi - new to this community - I'm a programmer not a GIS expert. I'm trying to find which classes/functions I can use from a Python program, external to ArcPro, using arcpy in order to change field values in a .PAGX file. Can anyone help me find out if this is even feasible (or even sensible)?
Thanks!
Solved! Go to Solution.
Hi @PaulCleverleyArup
Yes, you can use Python IDEs like VSCode or Pycharm to write python code and use arcpy or any of the packages in the default Pro python environment.
When you say "using arcpy in order to change field values", I assume here that you want to edit features in your ArcGIS Pro project. If that is correct, then I would suggest going through this doco page and sample code provided:
https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/updatecursor-class.htm
Regards
Ihab
Are you saying without a Pro license/installation?
Hi @PaulCleverleyArup
Yes, you can use Python IDEs like VSCode or Pycharm to write python code and use arcpy or any of the packages in the default Pro python environment.
When you say "using arcpy in order to change field values", I assume here that you want to edit features in your ArcGIS Pro project. If that is correct, then I would suggest going through this doco page and sample code provided:
https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/updatecursor-class.htm
Regards
Ihab
@PaulCleverleyArup PAGX is a layout file, APRX is ArcGIS Pro project file.
You can import layout file into Pro project as a map using "importDocument" function of "ArcGISProject" class, more details can be found here: https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm
I am not sure if you can create an empty Pro project from the code though.
if you find any of my answers helped, feel free to mark it as a solution, that would be really appreciated.
Regards
Ihab