<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Projec.Current.SaveAs method in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790287#M1484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank &lt;A href="https://community.esri.com/migrated-users/10927"&gt;Wolfgang Kaiser&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now it is the best and simplest approach for me, &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2020 06:56:15 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-09-14T06:56:15Z</dc:date>
    <item>
      <title>Projec.Current.SaveAs method</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790281#M1478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I refer to this example - Project.Current.SaveAs method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Content#saveas-project" title="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Content#saveas-project"&gt;ProSnippets Content · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try and save into a particular unc path location,&lt;/P&gt;&lt;P&gt;Example when I save into&lt;/P&gt;&lt;P&gt;"//unc path start/untitled1/untitled1.aprx" location,&lt;/P&gt;&lt;P&gt;that actually saving in like&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;//unc path start/untitled1/untitled1.aprx/untitled1.aprx&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Later I change my code for parameter value "//unc path start/untitled1" as I thought, I might make mistake.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;that actually saving in like&amp;nbsp;//unc path start/untitled1.aprx/untitled1.aprx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I am using pro version 2.5, project type is blank project and I called that saveas method at during project saving event.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Is that pro sdk bug or any idea about it? &lt;A href="https://community.esri.com/migrated-users/360701"&gt;Mehdi Pira&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/86730"&gt;Uma Harano&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/10927"&gt;Wolfgang Kaiser&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp;It is related to that question&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;https://community.esri.com/thread/258880-limiting-project-saving-location&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Than&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2020 07:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790281#M1478</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-28T07:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Projec.Current.SaveAs method</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790282#M1479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your problem is caused by the fact that you are calling the snippet during the project saving event.&amp;nbsp; I implemented a simple button and experienced no issues with the path.&amp;nbsp; However, if you look closely at what 'save as' does, you will notice that it only saves the .aprx file in the 'save as' path, the local database and other project artifacts stay behind in the local path.&amp;nbsp; There are some workarounds for this:&lt;/P&gt;&lt;P&gt;1) You can save a 'project package' each time the user is trying to 'save' a project and then set the project's dirty flag to false.&amp;nbsp; This will actually copy everything to the shared unc location.&amp;nbsp; However, once you open the project package you have to perform the same 'save as' workflow each time since otherwise the 'save' operation (on an opened project package) saves&amp;nbsp;now and aprx&amp;nbsp;on the local drive.&lt;BR /&gt;&amp;nbsp;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/504950_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;You can change the project 'default' locations in the ArcGIS options:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/504952_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;3) Similar to 2) above you can provide a 'customized create new projects button' which makes use of the following project class method:&amp;nbsp;CreateAsync (CreateProjectSettings createProjectSettings) &lt;SPAN&gt;createProjectSettings&lt;/SPAN&gt;&amp;nbsp;allows you to specify the default locations (in your case the unc path).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2020 15:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790282#M1479</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2020-08-31T15:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Projec.Current.SaveAs method</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790283#M1480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank &lt;A href="https://community.esri.com/migrated-users/10927"&gt;Wolfgang Kaiser&lt;/A&gt; for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be I shall create new ribbon button and test about save as different location, but based on you explanation, the local gdb and other reference artifact remained at old project location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For option 1: it look like the workflow is quite complicated. Is there any simple way we can manage from sdk or sdk with python tool?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For option 2: Create Projects : Project Location , is there any way to automate and set the custom location from sdk config/module project type? I think configx project type seems to be achievable. Lets say If we can do that, for the blank project type, if user don't save it, when will those temporary projects removed? and How will those be removed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For option 3: User already rejected about that before I posted this question in geonet, they don't want that way and prefer to happily play as blank project. If they don't want to save, they can neglect to save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Than&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2020 02:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790283#M1480</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-04T02:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Projec.Current.SaveAs method</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790284#M1481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Option 1: you have to look at the parameters here:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/package-project.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/package-project.htm"&gt;Package Project (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and call the geoprocessing task as demonstrated here:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Geoprocessing/GeoprocessingExecuteAsync" title="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Geoprocessing/GeoprocessingExecuteAsync"&gt;arcgis-pro-sdk-community-samples/Geoprocessing/GeoprocessingExecuteAsync at master · Esri/arcgis-pro-sdk-community-sampl…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2: no, the SDK doesn't support read/write to backstage properties.&amp;nbsp; I guess you can try to write the property into the user.config settings file (%appdata%\Esri\ArcGISPro.exe_StrongName....\2.6.0.0\user.config) where these properties are stored.&amp;nbsp; New projects will not be removed since Pro saves them automatically.&amp;nbsp; 'New' projects are only deleted if the operator deletes the project folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2020 21:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790284#M1481</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2020-09-04T21:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Projec.Current.SaveAs method</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790285#M1482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank &lt;A href="https://community.esri.com/migrated-users/10927"&gt;Wolfgang Kaiser&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1: It look like, it is require to perform at project save event(Project already save). So that I can launch packaging python script. So need to package and Save, after that need to extract to aprx, and then reopen. So&amp;nbsp; it is very complicated, I won't try that.&lt;/P&gt;&lt;P&gt;Option 2: Most likely very straight forward, Is there any doco for user.config settings? There are lot of setting inside, since it is in the &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;%appdata%&lt;/SPAN&gt;\Local\ESRI\ArcGISPro.exe_StrongName_yhpsrysqpn4fvmb0spwbakt5o5e50din\2.5.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will it be overwritten by any of the process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Than&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2020 05:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790285#M1482</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-07T05:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Projec.Current.SaveAs method</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790286#M1483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding option 2: the location string will get overwritten each time the operator changes it from the backstage options window.&amp;nbsp; The content of the user.config is self explained, simply make the change from your options menu and check the tag that's being used to store your change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 16:13:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790286#M1483</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2020-09-08T16:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Projec.Current.SaveAs method</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790287#M1484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank &lt;A href="https://community.esri.com/migrated-users/10927"&gt;Wolfgang Kaiser&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now it is the best and simplest approach for me, &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2020 06:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/projec-current-saveas-method/m-p/790287#M1484</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-14T06:56:15Z</dc:date>
    </item>
  </channel>
</rss>

