<?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: ArcGIS Pro SDK Add-In C#:  How to get /set the Home Folder Option Path in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-add-in-c-how-to-get-set-the-home/m-p/1136429#M7668</link>
    <description>&lt;P&gt;Note: if u wanted to change the default (default"s") for all projects u might find these snippets useful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Content#set-generaloptions-to-use-defaults" target="_self"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Content#set-generaloptions-to-use-defaults&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 16:21:19 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2022-01-24T16:21:19Z</dc:date>
    <item>
      <title>ArcGIS Pro SDK Add-In C#:  How to get /set the Home Folder Option Path</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-add-in-c-how-to-get-set-the-home/m-p/1136201#M7663</link>
      <description>&lt;P&gt;Is it possible to set&amp;nbsp;programmatically the Home Folder Path of a project?&amp;nbsp; And then also get the path after setting it?&lt;/P&gt;&lt;P&gt;I can manually set it in Options settings.&amp;nbsp; But having problems trying to get the home folder path in my program.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to use the default C:\ drive since sometimes users have no access to it in our servers.&lt;/P&gt;&lt;P&gt;Appreciate any help.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 09:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-add-in-c-how-to-get-set-the-home/m-p/1136201#M7663</guid>
      <dc:creator>JadedEarth</dc:creator>
      <dc:date>2022-01-23T09:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK Add-In C#:  How to get /set the Home Folder Option Path</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-add-in-c-how-to-get-set-the-home/m-p/1136204#M7664</link>
      <description>&lt;P&gt;Never mind.&amp;nbsp; Found out the solution:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var homeDir = Project.Current.HomeFolderPath;

var drive = Directory.GetDirectoryRoot(homeDir);
if (drive == "C")
{
    //Set the current directory.
    Project.Current.SetHomeFolderPath(working_folder);
}
else
{
   //Disable controls
    TboxWorkingDir.IsEnabled = false;
    BtnSetup.IsEnabled = false;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 23 Jan 2022 09:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-add-in-c-how-to-get-set-the-home/m-p/1136204#M7664</guid>
      <dc:creator>JadedEarth</dc:creator>
      <dc:date>2022-01-23T09:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK Add-In C#:  How to get /set the Home Folder Option Path</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-add-in-c-how-to-get-set-the-home/m-p/1136429#M7668</link>
      <description>&lt;P&gt;Note: if u wanted to change the default (default"s") for all projects u might find these snippets useful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Content#set-generaloptions-to-use-defaults" target="_self"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Content#set-generaloptions-to-use-defaults&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 16:21:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-add-in-c-how-to-get-set-the-home/m-p/1136429#M7668</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-01-24T16:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK Add-In C#:  How to get /set the Home Folder Option Path</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-add-in-c-how-to-get-set-the-home/m-p/1136643#M7673</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; Solves my problem.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 22:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-add-in-c-how-to-get-set-the-home/m-p/1136643#M7673</guid>
      <dc:creator>JadedEarth</dc:creator>
      <dc:date>2022-01-24T22:13:41Z</dc:date>
    </item>
  </channel>
</rss>

