Project SaveAs using ArcPy

431
5
06-30-2021 08:15 AM
Labels (1)
JeffThomasILM
Occasional Contributor II

Is there a way to "save as" a project from ArcPy? I know there's "save" and "saveACopy" but not "saveAs". I'm trying to establish a workflow where I open a template project, customize it by running a script, then save it as a new project (and further customize it manually) without having to close the template and then open the copied project. I can "save as" manually, but not with ArcPy?

Tags (2)
0 Kudos
5 Replies
DanPatterson
MVP Esteemed Contributor

ArcGISProject—ArcGIS Pro | Documentation

go with saveACopy  which is what arcpy wants...


... sort of retired...
0 Kudos
JeffThomasILM
Occasional Contributor II

I understand I can use saveACopy, but that forces me to close my template (without saving!) and then open the new project to continue working. I'm trying to figure out if there's a better way.

0 Kudos
DanPatterson
MVP Esteemed Contributor

They are the only two options that I can find anywhere in arcpy.


... sort of retired...
0 Kudos
JeffThomasILM
Occasional Contributor II

The answer to my question appears to be, you cannot saveAs with ArcPy. So my follow up question is, why not? Will it be added in the future or is there some technical reason they don't want to? 

DanPatterson
MVP Esteemed Contributor

contact Tech Support and they may forward your question on for further discussion


... sort of retired...
0 Kudos