<?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: How to add a reference to an FGDB in the database folder of the project? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-reference-to-an-fgdb-in-the-database/m-p/1063433#M6630</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/488951"&gt;@MarioLandry2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try that sample code.&lt;/P&gt;&lt;P&gt;Your method need to be async, fgdbpath should be string variable and store your file geodatabase path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ProgressorSource ps = new ProgressorSource("Adding fgdb connections");
await QueuedTask.Run(async () =&amp;gt;
                            {
                                ps.Message = $"Adding fgdb path....";
                                IProjectItem tmpItem = ItemFactory.Instance.Create(fgdbpath) as IProjectItem;
                               
                                bool isAdded = Project.Current.AddItem(tmpItem);
                                
                            }, ps.Progressor);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 05:39:42 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-06-01T05:39:42Z</dc:date>
    <item>
      <title>How to add a reference to an FGDB in the database folder of the project?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-reference-to-an-fgdb-in-the-database/m-p/1063300#M6626</link>
      <description>&lt;P&gt;Hello dear community,&lt;/P&gt;&lt;P&gt;I've created a small program that does create a series of projects and that also creates individual FGDBs inside those projects.&lt;/P&gt;&lt;P&gt;For example, I have a project named f24010 and within that project there is a FGDB named Extract_f24010.&lt;/P&gt;&lt;P&gt;I can see the FGDB in the folder "Folders", but I can't see the same database in the folder "Databases"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarioLandry2_0-1622472053410.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14623i610C1399CBADE52C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarioLandry2_0-1622472053410.png" alt="MarioLandry2_0-1622472053410.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using ArcGIS Pro SDK, how can I add a reference to the FGDB in the "Databases" folder?&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 14:49:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-reference-to-an-fgdb-in-the-database/m-p/1063300#M6626</guid>
      <dc:creator>MarioLandry2</dc:creator>
      <dc:date>2021-05-31T14:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a reference to an FGDB in the database folder of the project?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-reference-to-an-fgdb-in-the-database/m-p/1063316#M6627</link>
      <description>&lt;P&gt;I've realized that I could use the id command "esri_projectitemAddToProjectButton" but it does not work, mainly because I guess I don't know how to call a command ids with a parameter, in that case the FGDB file name.&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 15:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-reference-to-an-fgdb-in-the-database/m-p/1063316#M6627</guid>
      <dc:creator>MarioLandry2</dc:creator>
      <dc:date>2021-05-31T15:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a reference to an FGDB in the database folder of the project?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-reference-to-an-fgdb-in-the-database/m-p/1063433#M6630</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/488951"&gt;@MarioLandry2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try that sample code.&lt;/P&gt;&lt;P&gt;Your method need to be async, fgdbpath should be string variable and store your file geodatabase path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ProgressorSource ps = new ProgressorSource("Adding fgdb connections");
await QueuedTask.Run(async () =&amp;gt;
                            {
                                ps.Message = $"Adding fgdb path....";
                                IProjectItem tmpItem = ItemFactory.Instance.Create(fgdbpath) as IProjectItem;
                               
                                bool isAdded = Project.Current.AddItem(tmpItem);
                                
                            }, ps.Progressor);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 05:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-reference-to-an-fgdb-in-the-database/m-p/1063433#M6630</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-01T05:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a reference to an FGDB in the database folder of the project?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-reference-to-an-fgdb-in-the-database/m-p/1063564#M6633</link>
      <description>&lt;P&gt;Thanks a lot Than!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 13:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-reference-to-an-fgdb-in-the-database/m-p/1063564#M6633</guid>
      <dc:creator>MarioLandry2</dc:creator>
      <dc:date>2021-06-01T13:46:55Z</dc:date>
    </item>
  </channel>
</rss>

