Select to view content in your preferred language

Disable project Save-As?

165
2
a month ago
AlfredBaldenweck
MVP Regular Contributor

Shot in the dark here, but the way Pro handles Save-As is causing me major grief as my users continue to duplicate only their APRXs and they all end up pointing back to unrelated home folders (photo 1) and make supporting folders in inappropriate locations (photo 2).

AlfredBaldenweck_1-1742580704759.png

AlfredBaldenweck_0-1742580694266.png

Would it be possible to just disable Save-As for them? I don't want to make a custom build or anything, but I'm not opposed to messing with admin settings as necessary.

 

0 Kudos
2 Replies
Robert_LeClair
Esri Esteemed Contributor

So I don't know if there's an easy way to disable the "Save Project As" command in the Customize the Ribbon workflow on the Project tab (back stage)->Options.  I cannot find where the "Save Project As" command is located. 

But I did find DAML ID Reference ADCore.daml webpage from GitHub - DAML ID Reference ADCore.daml · Esri/arcgis-pro-sdk Wiki · GitHub - if you do a find on this page for "Save Project As", you'll find the ID and condition.  The ADCore.daml file is located on your C:\Program Files\ArcGIS\Pro\bin\Extensions\Core.  Now HOW TO and SHOULD YOU modify this file is way outside my wheelhouse.  But it's a start...hope this helps!

0 Kudos
RichardDaniels
Honored Contributor

If you actually know the Condition for the button or tool then you should be able to use the Framework.Application.Deactivate("esri_mapping_openProjectCondition") command in code to disable the button. I do note this will also probably disable Name: Save Project

Name: Save Project As
ID: esri_core_saveProjectAsButton
Condition: esri_mapping_openProjectCondition

0 Kudos