<?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 ArcGIS Pro - How do I prevent a project from saving in C# code? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-how-do-i-prevent-a-project-from-saving/m-p/850071#M4219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a project is closed and a new project is loaded, the API will attempt to save the previous project IF the project is dirty -not saved since last edit or add data operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Project.Current.SetDirty(false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will prevent the ArcGIS Pro project save window from appearing (with an undocumented exception if you select Cancel :-).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2020 19:24:59 GMT</pubDate>
    <dc:creator>RichardDaniels</dc:creator>
    <dc:date>2020-02-19T19:24:59Z</dc:date>
    <item>
      <title>ArcGIS Pro - How do I prevent a project from saving in C# code?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-how-do-i-prevent-a-project-from-saving/m-p/850071#M4219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a project is closed and a new project is loaded, the API will attempt to save the previous project IF the project is dirty -not saved since last edit or add data operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Project.Current.SetDirty(false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will prevent the ArcGIS Pro project save window from appearing (with an undocumented exception if you select Cancel :-).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 19:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-how-do-i-prevent-a-project-from-saving/m-p/850071#M4219</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2020-02-19T19:24:59Z</dc:date>
    </item>
  </channel>
</rss>

