<?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: Best way to determine the full path of a featurelayer, if it is a shapefile? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-determine-the-full-path-of-a/m-p/855204#M4468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your technique should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the upcoming Pro 2.6 release (summer 2020), we will be adding a GetPath() method directly to the FeatureLayer class so that you don't have to go through this to get the path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you're going through all of this just to find out if you are looking at a shape file, I would do&amp;nbsp;something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;bool&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;IsShapeFile&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;FeatureLayer featureLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;using&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;FeatureClass featureClass &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; featureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetFeatureClass&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;using&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Datastore datastore &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; featureClass&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetDatastore&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;datastore &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; FileSystemDatastore&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:34:21 GMT</pubDate>
    <dc:creator>RichRuh</dc:creator>
    <dc:date>2021-12-12T10:34:21Z</dc:date>
    <item>
      <title>Best way to determine the full path of a featurelayer, if it is a shapefile?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-determine-the-full-path-of-a/m-p/855203#M4467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying find the best way to find the full path of a shapefile, which is open in the active map. Or in other words, I want to find a way to know if the feature layer in the active map is a shapefile or not.&amp;nbsp;I "think" I saw it somewhere in the SDK snippets github pages, but I cannot track it now. Anyway, here is what I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="" start="1" style="color: #5c5c5c; background-color: #ffffff; border: none; margin: 0px 0px 1px 45px !important;"&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&lt;SPAN class="" style="color: #006699; background-color: inherit; border: none; font-weight: bold;"&gt;string&lt;/SPAN&gt;&amp;nbsp;SelectedShapefileLayer&amp;nbsp;=&amp;nbsp;&lt;SPAN class="" style="color: blue; background-color: inherit; border: none;"&gt;"Some_feature_in_map"&lt;/SPAN&gt;;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&lt;SPAN class="" style="color: #006699; background-color: inherit; border: none; font-weight: bold;"&gt;string&lt;/SPAN&gt;&amp;nbsp;fcLocation&amp;nbsp;=&amp;nbsp;&lt;SPAN class="" style="color: blue; background-color: inherit; border: none;"&gt;""&lt;/SPAN&gt;;&amp;nbsp;&amp;nbsp;&lt;SPAN class="" style="color: #008200; background-color: inherit; border: none;"&gt;//&amp;nbsp;Location&amp;nbsp;of&amp;nbsp;feature&amp;nbsp;layer:&amp;nbsp;either&amp;nbsp;a&amp;nbsp;FGDB&amp;nbsp;or&amp;nbsp;a&amp;nbsp;folder&amp;nbsp;//&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&lt;SPAN class="" style="color: #006699; background-color: inherit; border: none; font-weight: bold;"&gt;string&lt;/SPAN&gt;&amp;nbsp;fcName&amp;nbsp;=&amp;nbsp;&lt;SPAN class="" style="color: blue; background-color: inherit; border: none;"&gt;""&lt;/SPAN&gt;;&amp;nbsp;&amp;nbsp;&lt;SPAN class="" style="color: #008200; background-color: inherit; border: none;"&gt;//&amp;nbsp;ACTUAL&amp;nbsp;name&amp;nbsp;of&amp;nbsp;feature&amp;nbsp;layer&amp;nbsp;//&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;await&amp;nbsp;QueuedTask.Run(()&amp;nbsp;=&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;fcLyr&amp;nbsp;=&amp;nbsp;(FeatureLayer)MapView.Active.Map.FindLayers(SelectedFeatureLayer).First();&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Uri&amp;nbsp;fcURI&amp;nbsp;=&amp;nbsp;fcLyr.GetTable().GetDatastore().GetPath();&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fcLocation&amp;nbsp;=&amp;nbsp;fcURI.LocalPath;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fcName&amp;nbsp;=&amp;nbsp;fcLyr.GetTable().GetDefinition().GetName();&amp;nbsp;&lt;SPAN class="" style="color: #008200; background-color: inherit; border: none;"&gt;// Displayed name may&amp;nbsp;not&amp;nbsp;be ACTUAL&amp;nbsp;name&amp;nbsp;//&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;});&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&lt;SPAN class="" style="color: #006699; background-color: inherit; border: none; font-weight: bold;"&gt;string&lt;/SPAN&gt;&amp;nbsp;fcPath&amp;nbsp;=&amp;nbsp;&lt;SPAN class="" style="color: blue; background-color: inherit; border: none;"&gt;""&lt;/SPAN&gt;;&amp;nbsp;&lt;SPAN class="" style="color: #008200; background-color: inherit; border: none;"&gt;//&amp;nbsp;Full&amp;nbsp;path&amp;nbsp;of&amp;nbsp;feature&amp;nbsp;layer&amp;nbsp;//&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&lt;SPAN class="" style="color: #006699; background-color: inherit; border: none; font-weight: bold;"&gt;if&lt;/SPAN&gt;&amp;nbsp;(Path.GetExtension(fcLocation)&amp;nbsp;==&amp;nbsp;&lt;SPAN class="" style="color: blue; background-color: inherit; border: none;"&gt;""&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="" style="color: #008200; background-color: inherit; border: none;"&gt;//&amp;nbsp;If&amp;nbsp;feature&amp;nbsp;layer&amp;nbsp;is&amp;nbsp;a&amp;nbsp;shapefile&amp;nbsp;//&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fcPath&amp;nbsp;=&amp;nbsp;Path.Combine(fcLocation,&amp;nbsp;fcName&amp;nbsp;+&amp;nbsp;&lt;SPAN class="" style="color: blue; background-color: inherit; border: none;"&gt;".shp"&lt;/SPAN&gt;);&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&lt;SPAN class="" style="color: #006699; background-color: inherit; border: none; font-weight: bold;"&gt;else&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="" style="color: #008200; background-color: inherit; border: none;"&gt;//&amp;nbsp;if&amp;nbsp;feature&amp;nbsp;layer&amp;nbsp;is&amp;nbsp;a&amp;nbsp;FGDB&amp;nbsp;feature&amp;nbsp;class&amp;nbsp;//&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fcPath&amp;nbsp;=&amp;nbsp;Path.Combine(fcLocation,&amp;nbsp;fcName);&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f8f8f8; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: none;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be&amp;nbsp;grateful if anyone could help me find a better way to do this. Surely, there must be a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code, I have assigned all feature layer WITHOUT an extension as a FGDB feature class, and others as a shapefile. I think that could run into trouble as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 14:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-determine-the-full-path-of-a/m-p/855203#M4467</guid>
      <dc:creator>GyanendraGurung</dc:creator>
      <dc:date>2020-04-07T14:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to determine the full path of a featurelayer, if it is a shapefile?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-determine-the-full-path-of-a/m-p/855204#M4468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your technique should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the upcoming Pro 2.6 release (summer 2020), we will be adding a GetPath() method directly to the FeatureLayer class so that you don't have to go through this to get the path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you're going through all of this just to find out if you are looking at a shape file, I would do&amp;nbsp;something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;bool&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;IsShapeFile&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;FeatureLayer featureLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;using&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;FeatureClass featureClass &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; featureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetFeatureClass&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;using&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Datastore datastore &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; featureClass&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetDatastore&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;datastore &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; FileSystemDatastore&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-determine-the-full-path-of-a/m-p/855204#M4468</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2021-12-12T10:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to determine the full path of a featurelayer, if it is a shapefile?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-determine-the-full-path-of-a/m-p/855205#M4469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your kind and prompt reply.&amp;nbsp;It is very nice to know that such a feature will be available in the next release. Awesome !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your script. I saw the snippet for opening a shapefile using "FileSystemDatastore" in the &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#opening-a-featureclass-from-a-shapefile-datastore"&gt;snippet section&lt;/A&gt;.&amp;nbsp;But I could not find a way to use it to check for a&amp;nbsp;shapefile.&amp;nbsp;Thank you for sharing a simpler solution. This is really awesome!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many many thanks again !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 16:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-determine-the-full-path-of-a/m-p/855205#M4469</guid>
      <dc:creator>GyanendraGurung</dc:creator>
      <dc:date>2020-04-07T16:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to determine the full path of a featurelayer, if it is a shapefile?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-determine-the-full-path-of-a/m-p/855206#M4470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the release of ArcGIS Pro 2.6, the &lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic29487.html"&gt;FeatureLayer.GetPath&lt;/A&gt; method is now available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 20:07:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-determine-the-full-path-of-a/m-p/855206#M4470</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-07-29T20:07:56Z</dc:date>
    </item>
  </channel>
</rss>

