<?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>idea Add an argument to Exists function to limit existence test on one type in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idi-p/938498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Arcpy function Exists determines the existence of the specified data object. Tests for the existence of feature classes, tables, datasets, shapefiles, workspaces, layers, and files.&lt;/P&gt;&lt;P&gt;Unfortunatly, when it returns "True", you cannot know which type of data object (feature classes or&amp;nbsp;tables or&amp;nbsp;datasets or shapefiles&amp;nbsp;or &amp;nbsp;workspaces or&amp;nbsp;layers or files) has successfully validated the existence test.&lt;/P&gt;&lt;P&gt;There is a long time ago, in a very old software, there was an aml function Exists, which determined the existence of a specified data object regards to a type (Coverage, Workspace, etc...)&lt;/P&gt;&lt;P&gt;Cf :&lt;/P&gt;&lt;PRE style="width: 800px; margin-left: 40px; background-color: mistyrose;"&gt;[EXISTS &amp;lt;object&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {-FILE | -ADDRESS | -ANNOTATIONS{.subclass} | -ARC | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASCONNECT | -ASDATABASE | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASDBMSTABLE &amp;lt;database&amp;gt; &amp;lt;connection&amp;gt; | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASHISTORY {datetime} {&amp;lt;database&amp;gt; &amp;lt;connection&amp;gt;} | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASHistoricalVIEW {-DBMSTABLE | -INFOTABLE | -LAYER} | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASINFOTABLE | -ASLAYER | -ASLIBRARY | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -CLEAN | -COVER | -DEFLAYER | -DIRECTORY | -GRID | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -IMAGE | -INFO | -LAYER | -LIBRARY | -LINE | -LINK | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -NETWORK | -NODE | -POINT | -POLYGON | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -REGION{.subclass} | -ROUTE{.subclass} | -SECTION{.subclass} | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -STACK | -TAT{.subclass} | -TIC | -TIN | -VAT | -WORKSPACE}]&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be interesting and usefull for end user that arcpy.Exists function can be enhanced in order to get in argument one the tested type : feature classes or&amp;nbsp;tables or&amp;nbsp;datasets or shapefiles&amp;nbsp;or &amp;nbsp;workspaces or&amp;nbsp;layers or files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to take this request in consideration about a function very usefull with Arc/Info and a bit truncated in Arcmap and ArcGIS Pro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2018 09:46:23 GMT</pubDate>
    <dc:creator>AlainRAVAZY</dc:creator>
    <dc:date>2018-10-01T09:46:23Z</dc:date>
    <item>
      <title>Add an argument to Exists function to limit existence test on one type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idi-p/938498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Arcpy function Exists determines the existence of the specified data object. Tests for the existence of feature classes, tables, datasets, shapefiles, workspaces, layers, and files.&lt;/P&gt;&lt;P&gt;Unfortunatly, when it returns "True", you cannot know which type of data object (feature classes or&amp;nbsp;tables or&amp;nbsp;datasets or shapefiles&amp;nbsp;or &amp;nbsp;workspaces or&amp;nbsp;layers or files) has successfully validated the existence test.&lt;/P&gt;&lt;P&gt;There is a long time ago, in a very old software, there was an aml function Exists, which determined the existence of a specified data object regards to a type (Coverage, Workspace, etc...)&lt;/P&gt;&lt;P&gt;Cf :&lt;/P&gt;&lt;PRE style="width: 800px; margin-left: 40px; background-color: mistyrose;"&gt;[EXISTS &amp;lt;object&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {-FILE | -ADDRESS | -ANNOTATIONS{.subclass} | -ARC | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASCONNECT | -ASDATABASE | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASDBMSTABLE &amp;lt;database&amp;gt; &amp;lt;connection&amp;gt; | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASHISTORY {datetime} {&amp;lt;database&amp;gt; &amp;lt;connection&amp;gt;} | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASHistoricalVIEW {-DBMSTABLE | -INFOTABLE | -LAYER} | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ASINFOTABLE | -ASLAYER | -ASLIBRARY | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -CLEAN | -COVER | -DEFLAYER | -DIRECTORY | -GRID | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -IMAGE | -INFO | -LAYER | -LIBRARY | -LINE | -LINK | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -NETWORK | -NODE | -POINT | -POLYGON | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -REGION{.subclass} | -ROUTE{.subclass} | -SECTION{.subclass} | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -STACK | -TAT{.subclass} | -TIC | -TIN | -VAT | -WORKSPACE}]&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be interesting and usefull for end user that arcpy.Exists function can be enhanced in order to get in argument one the tested type : feature classes or&amp;nbsp;tables or&amp;nbsp;datasets or shapefiles&amp;nbsp;or &amp;nbsp;workspaces or&amp;nbsp;layers or files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to take this request in consideration about a function very usefull with Arc/Info and a bit truncated in Arcmap and ArcGIS Pro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 09:46:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idi-p/938498</guid>
      <dc:creator>AlainRAVAZY</dc:creator>
      <dc:date>2018-10-01T09:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add an argument to Exists function to limit existence test on one type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938499#M4827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand your idea or am missing the point? If you call arcpy.Exists(r"c:\temp\test.shp") you know it is a featureclass, or arcpy.Exists(r"c:\temp\test.tif"), you know it is a raster that you are testing for the existence of?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 11:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938499#M4827</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2018-10-01T11:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add an argument to Exists function to limit existence test on one type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938500#M4828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider the program above :&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;arcpy.env.workspace = "D:\\support\\02160804\\test.gdb"&lt;BR clear="none" /&gt;fcm = arcpy.CreateFeatureclass_management("in_memory","bbb","polygon","","DISABLED","DISABLED","","","0","0","0")&lt;BR clear="none" /&gt; def tester(input):&lt;BR clear="none" /&gt; ...&amp;nbsp;&amp;nbsp; if arcpy.Exists(input):&lt;BR clear="none" /&gt; ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print ("exits")&lt;BR clear="none" /&gt; ...&amp;nbsp;&amp;nbsp; else:&lt;BR clear="none" /&gt; ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print ("doesnot exist")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Suppose you have also a raster dataset "bbb" in test.gdb. How you can know if the execution of tester("bbb") did find the raster dataset in the FGDB or the layer "bbb" in the TOC ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;This question was very important for one of my end user.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 11:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938500#M4828</guid>
      <dc:creator>AlainRAVAZY</dc:creator>
      <dc:date>2018-10-01T11:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add an argument to Exists function to limit existence test on one type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938501#M4829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that really is the program that was being run then the function tester() is never entered as it is never called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;input&lt;/EM&gt; parameter would need to be "bbb". Exists() &lt;STRONG&gt;honours the workspace Environment Setting&lt;/STRONG&gt;&amp;nbsp;and as you have set it on the first line it would be looking in the file geodatabase. Your second line creates a polygon featureclass in the &lt;EM&gt;in_memory&lt;/EM&gt; workspace so if you wanted to test for the existence of bbb&amp;nbsp;&lt;EM&gt;in the&lt;/EM&gt; in_memory workspace your &lt;EM&gt;input&lt;/EM&gt; parameter to tester() would be "in_memory\bbb".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were trying to make it generic and just look for "bbb" you would ALWAYS need to set the environment setting Workspace. So by definition you know what and were you are looking when running the Exists() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 13:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938501#M4829</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2018-10-01T13:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add an argument to Exists function to limit existence test on one type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938502#M4830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am the end user mentioned by Alain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider you are in ArcMap and the TOC contains a layer named "aaa" that references any dataset, not necessarily a dataset named "aaa". Entering the following code in the Python Window:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;if arcpy.Exists("aaa"):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&amp;nbsp; print "aaa exists"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;else:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&amp;nbsp; print "aaa does not exist"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;answers "aaa exists" &lt;STRONG&gt;but this answer is ambiguous: as long as "aaa" exists as a layer in the TOC, you'll never know if a dataset "aaa" exists or not&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, there is a way to refine the answer by complementing this code with the use of arcpy.mapping.ListLayers, but this extends the code quite a bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My suggestion is to improve the Exists function so that it mimics its extremely useful and thoroughly used elder sister in the time of ArcInfo, which’s syntax used to be:&lt;/P&gt;&lt;P&gt;[EXISTS &amp;lt;object&amp;gt; {-FILE | -ADDRESS | -ANNOTATIONS{.subclass} | -ARC | -ASCONNECT | -ASDATABASE | -ASDBMSTABLE &amp;lt;database&amp;gt; &amp;lt;connection&amp;gt; | -ASHISTORY {datetime} {&amp;lt;database&amp;gt; &amp;lt;connection&amp;gt;} | -ASHistoricalVIEW {-DBMSTABLE | -INFOTABLE | -LAYER} | -ASINFOTABLE | -ASLAYER | -ASLIBRARY | -CLEAN | -COVER | -DEFLAYER | -DIRECTORY | -GRID | -IMAGE | -INFO | -LAYER | -LIBRARY | -LINE | -LINK | -NETWORK | -NODE | -POINT | -POLYGON | -REGION{.subclass} | -ROUTE{.subclass} | -SECTION{.subclass} | -STACK | -TAT{.subclass} | -TIC | -TIN | -VAT | -WORKSPACE}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the ArcPy environment, the syntax of the Exists function could be improved by similarly &lt;STRONG&gt;adding an argument, which would allow specifying the type of object to test for existence of&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The default option for this argument could be e.g. "ANY" so that any current Python code would not have to be upgraded to comply to that new syntax as the "ANY" value for that argument would mimic the current behaviour of the function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Argument values such as "DATASET" would allow refining the test to, in this case, "any type of dataset" as opposed to "any type of data object" as is the case with the current behaviour of the function which causes the above demonstrated ambiguity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Argument values could be refined down to specific data objects so that any ambiguity could be raised if necessary. The range of objects to test could thus be extended not only to "feature classes, tables, datasets, shapefiles, workspaces, layers, and files in the current workspace" as mentioned in the documentation but also to the whole range of object types managed by ArcPy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am quite sure this would be a real improvement making this function much more useful for ArcPy programming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 15:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938502#M4830</guid>
      <dc:creator>JoelDaroussin</dc:creator>
      <dc:date>2018-10-01T15:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add an argument to Exists function to limit existence test on one type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938503#M4831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the example:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Exists&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"aaa"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"aaa exists"&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"aaa does not exist"&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the full catalog path is not provided, nor has the workspace been set then this is asking if a &lt;EM&gt;layer&lt;/EM&gt; exists and as it is in the TOC then it would be True. Python has it's own way of checking if objects exists as discussed &lt;A href="https://stackoverflow.com/questions/9390126/pythonic-way-to-check-if-something-exists" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be the issue here is that old school AML had a stack/heap of objects and using EXISTS with it's optional parameter allowed it to query from the heap of objects (I'm just speculating to as how it works)? The current arcpy.Exists() does not require that as to make it function correctly you have to supply the path either in the parameter or as the workspace? By doing that you know already know what type of object it's going to test for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst your idea of adding an optional parameter should not break existing code I would be surprised if they implement it. What you are asking is the same as how the Delete (Data Management) tool functions but the &lt;EM&gt;data_type&lt;/EM&gt; parameter is not actually used, it's for "display purposes" what ever that means...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938503#M4831</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-12T11:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add an argument to Exists function to limit existence test on one type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938504#M4832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using either the temporary ws or a arcpy.env.workspace will not make any change: the answer will still be ambiguous, won't it? You still will not know if dataset "aaa" exists or not as the answer will stand for layer "aaa" in the TOC. Unless you explicitely specify a pathname to the dataset, in which case, I agree with you that it means you already know the type but only wether it is a dataset rather than a layer, not wether it is say a raster rataset rather than a feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless I am misunderstanding something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you're right, the Delete function despite its argument has the same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 16:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938504#M4832</guid>
      <dc:creator>JoelDaroussin</dc:creator>
      <dc:date>2018-10-01T16:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add an argument to Exists function to limit existence test on one type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938505#M4833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aah! The penny has dropped! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a file geodatabase if you had a dataset called aaa then yes you are right the Exist tool would say True/False but you would never know if it was a raster or vector dataset. You would need to use the Describe() function and check the &lt;EM&gt;datasetType&lt;/EM&gt; property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 16:45:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938505#M4833</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2018-10-01T16:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add an argument to Exists function to limit existence test on one type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938506#M4834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you finaly agree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, for sure one can find turnarounds to raise the ambiguities of the Exists function: Describe to distinguish a raster from vector or even from a table, ListLayers or a full pathname to distinguish a Layer from a dataset, and so on) but you can you imagine how complicated it could get to implement a general purpose function that could handle all situations, including generic handlers such as ANY or DATASET or SHAPEFILE, etc.? Whilst having all possible situations directly at the level of the function would make it so simple (just as the good old EXISTS ArcInfo function used to).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 20:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-an-argument-to-exists-function-to-limit/idc-p/938506#M4834</guid>
      <dc:creator>JoelDaroussin</dc:creator>
      <dc:date>2018-10-01T20:37:46Z</dc:date>
    </item>
  </channel>
</rss>

