Select to view content in your preferred language

Project SaveAs using ArcPy

1569
7
06-30-2021 08:15 AM
JeffThomasILM
Frequent Contributor

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
7 Replies
DanPatterson
MVP Esteemed Contributor

ArcGISProject—ArcGIS Pro | Documentation

go with saveACopy  which is what arcpy wants...


... sort of retired...
0 Kudos
JeffThomasILM
Frequent Contributor

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
Frequent Contributor

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
Geoffysicist
New Contributor

Jeff did you sort this out? This is exactly what I need to do and as usual I am being frustrated by arcpy

0 Kudos
JeffThomasILM
Frequent Contributor

I'm sorry, I have to admit I never followed up with this. I just designed my script without saveAs and moved on. Maybe it was added to ArcPy in the past 3 years, though your presence in this thread makes me think that's probably not the case!

0 Kudos