<?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 Close and open the current project in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/close-and-open-the-current-project/m-p/1653153#M13160</link>
    <description>&lt;P&gt;Stupid question here&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to close and open the current project to reset the project for the Add-In. Nothing happens with the code as expected because the project is already open.&lt;/P&gt;&lt;P&gt;I have a "reset" function where i find all the elements in the Add-in and reset them. If the project could be "reloaded", it would be easier.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override void OnClick()
{
    var curProject = Project.Current;
    string projectPath = curProject.URI;
    Project.Current.SetDirty(false);
    openPrj(projectPath);
}

private async void openPrj(string projectPath) 
{
    await Project.OpenAsync(projectPath);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Sep 2025 12:46:45 GMT</pubDate>
    <dc:creator>MichaelKohler</dc:creator>
    <dc:date>2025-09-25T12:46:45Z</dc:date>
    <item>
      <title>Close and open the current project</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/close-and-open-the-current-project/m-p/1653153#M13160</link>
      <description>&lt;P&gt;Stupid question here&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to close and open the current project to reset the project for the Add-In. Nothing happens with the code as expected because the project is already open.&lt;/P&gt;&lt;P&gt;I have a "reset" function where i find all the elements in the Add-in and reset them. If the project could be "reloaded", it would be easier.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override void OnClick()
{
    var curProject = Project.Current;
    string projectPath = curProject.URI;
    Project.Current.SetDirty(false);
    openPrj(projectPath);
}

private async void openPrj(string projectPath) 
{
    await Project.OpenAsync(projectPath);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 12:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/close-and-open-the-current-project/m-p/1653153#M13160</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2025-09-25T12:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Close and open the current project</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/close-and-open-the-current-project/m-p/1654918#M13166</link>
      <description>&lt;P&gt;Once a project is open, the application does not return to the "there is not a project open" state. That only occurs at start up. To "reset" a project/addin you would essentially have to open _another_ project and, from "that" project, re-open your desired one.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 17:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/close-and-open-the-current-project/m-p/1654918#M13166</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2025-10-02T17:34:00Z</dc:date>
    </item>
  </channel>
</rss>

