<?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: Is there a token for everything EXCEPT SHAPE@ in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227093#M17599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt; "are there other tokens besides what's listed on the help pages?" and/or "is there a EVERYTHINGBUTSHAPE@ token?".&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Unfortunately, there is no everything but shape token.&amp;nbsp; That is the complete list of tokens listed on the Search Cursor page.&amp;nbsp; However, The 'SHAPE@' token allows you to access all the geometry options shown [url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000]here[/url" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000]here[/url&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did recently write a function for a field list comprehension.&amp;nbsp; By default it will list all the fields except for the OID and Shape fields since these are usually the ones you wouldn't need.&amp;nbsp; I also have it set up to get the field objects OR just the field names plus a handful of other options.&amp;nbsp; Here is the code for this if you are interested; I have found it very useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;def GetFieldList(in_fc, list_all=False, plus_oid=False, return_shape=False, other_geom=False, return_object=False, exclude_fields=[]): &amp;nbsp;&amp;nbsp;&amp;nbsp; type_list = ['OID','Geometry'] &amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude = ['shape_area','shape_length'] &amp;nbsp;&amp;nbsp;&amp;nbsp; if list_all: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other_geom=True &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plus_oid=True &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return_shape=True &amp;nbsp;&amp;nbsp;&amp;nbsp; if plus_oid: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type_list.remove('OID') &amp;nbsp;&amp;nbsp;&amp;nbsp; if return_shape: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type_list.remove('Geometry') &amp;nbsp;&amp;nbsp;&amp;nbsp; if other_geom: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude = [] &amp;nbsp;&amp;nbsp;&amp;nbsp; if len(exclude_fields) &amp;gt; 0: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ex_f in exclude_fields: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude.append(ex_f.lower()) &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; # return either field names or field objects&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if return_object: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_list = [f for f in arcpy.ListFields(in_fc) &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if f.type not in type_list &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and f.name.lower() not in Exclude] &amp;nbsp;&amp;nbsp;&amp;nbsp; else: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_list = [f.name for f in arcpy.ListFields(in_fc) &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if f.type not in type_list &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and f.name.lower() not in Exclude] &amp;nbsp;&amp;nbsp;&amp;nbsp; return field_list&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By default, it will list all fields except OID and the Shape if you just use the "in_fc" parameter like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;in_fc = r'path\to_your\featureClass'&amp;nbsp; fields = GetFieldList(in_fc)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, to answer your original question for everything except shape, you could use the above function like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;in_fc = r'path\to_your\featureClass'&amp;nbsp; # Get all but shape fields = GetFieldList(in_fc, plus_oid=True, other_geom=True) &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Never mind on the change I made, I confused myself and was wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2013 15:26:19 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-06-17T15:26:19Z</dc:date>
    <item>
      <title>Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227089#M17595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This has to be a common task: using cursors, copy all the non-shape related data from one feature to another feature in a different FC (possibly with a different geometry type).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, I can use CreateFeatureclass_management to create a point FC from a line FC with all of the same attribute fields except the shape.&amp;nbsp; I'd like to use cursors to copy the data, but I can't do a straight copy if the geometry is different between FCs. I'd like to use the .firstpoint and .lastpoint methods to copy the shape, but then do a straight copy of all the other fields.&amp;nbsp; Do I have to go through all the effort of using Describe to find the shape field name, and then loop over all the fields except shape, or is there a token for: AllFieldsExceptShape@ ?&amp;nbsp; Perhaps a better more general question is: is the list of tokens in the arcpy.da web pages complete, or are there other tokens out there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(the point of this is to create my own version of "Feature Vertices To Points", so using that tool can't be a part of the answer to this question).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227089#M17595</guid>
      <dc:creator>StormwaterWater_Resources</dc:creator>
      <dc:date>2013-06-17T14:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227090#M17596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why not just create a table view?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: Even with this method you should remove the shape field explicitly. You can remove by geometry type field instead of name if that is easier for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227090#M17596</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-06-17T14:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227091#M17597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can get all the fields except for the Shape and other geometry pretty easily:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
types = ['OID','Geometry']
other_geom = ['shape_area','shape_length']

field_list = [f.name for f in arcpy.ListFields(in_fc)
&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; if f.type not in types
&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; and f.name.lower() not in other_geom]

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you cannot update/insert OID's (these are automatically populated) you have to exclude this as well for an insert cursor.&amp;nbsp; You also would not need to include the shape length/area either since these are also automatically calculated (in geodatabse feature classes, not shapefiles).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:03:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227091#M17597</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T11:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227092#M17598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can get all the fields except for the Shape and other geometry pretty easily:&lt;BR /&gt;&lt;BR /&gt;[...&amp;nbsp; see below]&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Caleb, that's easier than I was thinking it would be.&amp;nbsp; I had originally thought I would end up looking through field names, but I didn't think about checking for the type as well.&amp;nbsp; That helps, and it bypasses the Describe I thought I'd have to use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 15:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227092#M17598</guid>
      <dc:creator>StormwaterWater_Resources</dc:creator>
      <dc:date>2013-06-17T15:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227093#M17599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt; "are there other tokens besides what's listed on the help pages?" and/or "is there a EVERYTHINGBUTSHAPE@ token?".&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Unfortunately, there is no everything but shape token.&amp;nbsp; That is the complete list of tokens listed on the Search Cursor page.&amp;nbsp; However, The 'SHAPE@' token allows you to access all the geometry options shown [url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000]here[/url" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000]here[/url&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did recently write a function for a field list comprehension.&amp;nbsp; By default it will list all the fields except for the OID and Shape fields since these are usually the ones you wouldn't need.&amp;nbsp; I also have it set up to get the field objects OR just the field names plus a handful of other options.&amp;nbsp; Here is the code for this if you are interested; I have found it very useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;def GetFieldList(in_fc, list_all=False, plus_oid=False, return_shape=False, other_geom=False, return_object=False, exclude_fields=[]): &amp;nbsp;&amp;nbsp;&amp;nbsp; type_list = ['OID','Geometry'] &amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude = ['shape_area','shape_length'] &amp;nbsp;&amp;nbsp;&amp;nbsp; if list_all: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other_geom=True &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plus_oid=True &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return_shape=True &amp;nbsp;&amp;nbsp;&amp;nbsp; if plus_oid: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type_list.remove('OID') &amp;nbsp;&amp;nbsp;&amp;nbsp; if return_shape: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type_list.remove('Geometry') &amp;nbsp;&amp;nbsp;&amp;nbsp; if other_geom: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude = [] &amp;nbsp;&amp;nbsp;&amp;nbsp; if len(exclude_fields) &amp;gt; 0: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ex_f in exclude_fields: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude.append(ex_f.lower()) &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; # return either field names or field objects&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if return_object: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_list = [f for f in arcpy.ListFields(in_fc) &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if f.type not in type_list &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and f.name.lower() not in Exclude] &amp;nbsp;&amp;nbsp;&amp;nbsp; else: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_list = [f.name for f in arcpy.ListFields(in_fc) &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if f.type not in type_list &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and f.name.lower() not in Exclude] &amp;nbsp;&amp;nbsp;&amp;nbsp; return field_list&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By default, it will list all fields except OID and the Shape if you just use the "in_fc" parameter like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;in_fc = r'path\to_your\featureClass'&amp;nbsp; fields = GetFieldList(in_fc)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, to answer your original question for everything except shape, you could use the above function like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;in_fc = r'path\to_your\featureClass'&amp;nbsp; # Get all but shape fields = GetFieldList(in_fc, plus_oid=True, other_geom=True) &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Never mind on the change I made, I confused myself and was wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 15:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227093#M17599</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-06-17T15:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227094#M17600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Why not just create a table view?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used table views in Model Builder, but I've never used them in arcpy.&amp;nbsp; I'm not sure if I'm understanding how, or why actually, I'd use a table view in this case.&amp;nbsp; When I've used table views in MB I've used them to get a handle on a table currently open in my ArcMap session.&amp;nbsp; If I already have a search cursor open in my Python script why would I use table view.&amp;nbsp; Can you elaborate on your example?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 15:29:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227094#M17600</guid>
      <dc:creator>StormwaterWater_Resources</dc:creator>
      <dc:date>2013-06-17T15:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227095#M17601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Caleb.&amp;nbsp; That is indeed a useful and simple (in a good way) function.&amp;nbsp; Furthermore it solves the root problem of my original thread: "Does CreateFeatureclass_management preserve field order?" (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/86784-Does-CreateFeatureclass_management-preserve-field-order"&gt;http://forums.arcgis.com/threads/86784-Does-CreateFeatureclass_management-preserve-field-order&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; Because I can use a list of named fields which can include all fields, I don't have to worry about the order (for which I was uncertain that the "*" in the cursors would preserve).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 15:51:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227095#M17601</guid>
      <dc:creator>StormwaterWater_Resources</dc:creator>
      <dc:date>2013-06-17T15:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227096#M17602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Why are you calling, what seems to be an exclusion list, "Keep"?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added an exclude part so you can pass in a list of fields you want to exclude (that are not an OID, shape, or shape_length/area).&amp;nbsp; So for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; test = r'C:\TEMP\test2.gdb\roads'
&amp;nbsp;&amp;nbsp;&amp;nbsp; exclude = ['NAME1', 'TYPE1', 'Label1',' Display']

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Test plus OID and exclude fields and return as objects&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for field in GetFieldList(test,plus_oid=True,return_object=True,exclude_fields=exclude):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print field.name, field.type, field.length
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; I wanted to add a better explanation here...So by default the function will list all fields not found in the field_type list or in the original Exclude list which is by default, the shape_length and shape_area if applicable.&amp;nbsp;&amp;nbsp; So when you add a list to the exclude_list parameter, it will append each field name you add to that (not case sensitive since it is all converted to lower()) to the original Exclude list.&amp;nbsp; If the other_geom parameter is set to True, it will clear the "keep" list so it will list the shape_area/shape_length fields and fields to be excluded could still be added to the list if the user chooses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point, I was just adding all the options I could think of that I would want to use, may be a little bit of an overkill but there are times that I do not want the OID's, shape field, other geometry, and just one or two regular fields from a table which is why I added that part.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227096#M17602</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T11:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227097#M17603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;is there a token for: AllFieldsExceptShape@?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I didn't follow everything written above, but I have always used "*" to denote all the fields (except for SHAPE). So for example, if I want all the field AND SHAPE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; searchRow = arcpy.da.SearchCursor(myFC, ["SHAPE@","*"]).next()
&amp;gt;&amp;gt;&amp;gt; searchRow
(&amp;lt;Polygon object at 0x2b713f0[0x2b68e80]&amp;gt;, 1, (1216836.715736469, 112885.83942983788), None, 5723.961799418091, 395403.18030676956, 1)
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but if I just want the non-geometry fields:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; searchRow = arcpy.da.SearchCursor(myFC, ["*"]).next()
&amp;gt;&amp;gt;&amp;gt; searchRow
(1, (1216836.715736469, 112885.83942983788), None, 5723.961799418091, 395403.18030676956, 1)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that "*" will always return the centroid x,y coordinate pair... that's the (1216836.715736469, 112885.83942983788) part... but just not the entire geometry object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227097#M17603</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-11T11:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227098#M17604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Maybe I didn't follow everything written above, but I have always used "*" to denote all the fields (except for SHAPE). So for example, if I want all the field AND SHAPE:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; searchRow = arcpy.da.SearchCursor(myFC, ["SHAPE@","*"]).next()
&amp;gt;&amp;gt;&amp;gt; searchRow
(&amp;lt;Polygon object at 0x2b713f0[0x2b68e80]&amp;gt;, 1, (1216836.715736469, 112885.83942983788), None, 5723.961799418091, 395403.18030676956, 1)
&lt;/PRE&gt;&lt;BR /&gt;but if I just want the non-geometry fields:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; searchRow = arcpy.da.SearchCursor(myFC, ["*"]).next()
&amp;gt;&amp;gt;&amp;gt; searchRow
(1, (1216836.715736469, 112885.83942983788), None, 5723.961799418091, 395403.18030676956, 1)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Note that "*" will always return the centroid x,y coordinate pair... that's the (1216836.715736469, 112885.83942983788) part... but just not the entire geometry object.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wow, I did not know that using ['*'] would return all but shape...I must have missed that in the documentation.&amp;nbsp; Thanks for pointing that out Chris!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227098#M17604</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T11:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227099#M17605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The project that prompted this thread (as well as: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/86784-Does-CreateFeatureclass_management-preserve-field-order" rel="nofollow noopener noreferrer" target="_blank"&gt;Does CreateFeatureclass_management preserve field order&lt;/A&gt;&lt;SPAN&gt;) was to rewrite Esri's FeatureVerticesToPoints so that I didn't need an Advanced license to use that one tool.&amp;nbsp; I figured I'd go ahead and post that here.&amp;nbsp; I'd love to hear critiques, I know there are better ways of doing things.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm posting two scripts.&amp;nbsp; The first is my version of FeatureVerticesToPoints, and the second is a slightly modified version of Caleb1987's GetFieldList which I found very useful (and I expect to use it in the future as well).&amp;nbsp; Many thanks to Caleb1987 and mzcoyle for comments on this and the other thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One final point before the code.&amp;nbsp; I'm excluding fields *named* GlobalID, because the field.type value from ListFields for guid is broken.&amp;nbsp; It lists as "SmallInteger" which it is most certainly not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, sys, os
from MyModules import GetFieldList

inFC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = arcpy.GetParameterAsText(0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Input&amp;nbsp; Feature Class&amp;nbsp; (feature)
PtFC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = arcpy.GetParameterAsText(1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Output Feature Class&amp;nbsp; (point)
pLocation = arcpy.GetParameterAsText(2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Which end?&amp;nbsp; [ start | end ]
##overwrite = arcpy.GetParameterAsText(3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Boolean to control the overwrite of the output (not part of Esri's version)

# WARNING!&amp;nbsp;&amp;nbsp; Existing feature class is automatically overwritten
if arcpy.Exists(PtFC):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(PtFC)

PtFCpath&amp;nbsp;&amp;nbsp; = os.path.dirname(&amp;nbsp; PtFC )
PtFCname&amp;nbsp;&amp;nbsp; = os.path.basename( PtFC )

arcpy.CreateFeatureclass_management( PtFCpath, PtFCname, "POINT", inFC, "DISABLED", "DISABLED", inFC )

# ASSERT:&amp;nbsp; The following two returns from GetFieldList should be identical
insertFields = GetFieldList(PtFC)
searchFields = GetFieldList(inFC)

insertFields.insert(0,"SHAPE@XY")&amp;nbsp;&amp;nbsp;&amp;nbsp; # new points will get an XY tuple, not a geometry object
searchFields.insert(0,"SHAPE@")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # get the geometry *object* to get properties of it
cShape = 0

newPoints = arcpy.da.InsertCursor(PtFC, insertFields)

if ( pLocation == "START" ):

&amp;nbsp;&amp;nbsp;&amp;nbsp; srcFeatures = arcpy.da.SearchCursor(inFC, searchFields)
&amp;nbsp;&amp;nbsp;&amp;nbsp; for feature in srcFeatures:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point = feature[cShape].firstPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xy&amp;nbsp;&amp;nbsp;&amp;nbsp; = (point.X, point.Y)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newPoints.insertRow( (xy,) + feature[1:] )
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
elif ( pLocation == "END"&amp;nbsp;&amp;nbsp; ):

&amp;nbsp;&amp;nbsp;&amp;nbsp; srcFeatures = arcpy.da.SearchCursor(inFC, searchFields)
&amp;nbsp;&amp;nbsp;&amp;nbsp; for feature in srcFeatures:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point = feature[cShape].lastPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xy&amp;nbsp;&amp;nbsp;&amp;nbsp; = (point.X, point.Y)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newPoints.insertRow( (xy,) + feature[1:] )

##elif ( pLocation == ""&amp;nbsp;&amp;nbsp; ):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Other options can be included here to more completely mimic the Esri tool
else:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Unknown point location entered.&amp;nbsp; Please enter START or END.&amp;nbsp;&amp;nbsp;&amp;nbsp; Aborting!")
&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.exit(1)

del newPoints
arcpy.RefreshActiveView()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Slightly modified version of Caleb1987's GetFieldList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

def GetFieldList(in_fc, list_all=False, return_oid=False, return_shape=False, return_other_geom=False, return_object=False, exclude_fields=[]):
&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude_Types = ['Blob','Geometry','Guid','OID','Raster']
&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ['shape_area','shape_length','globalid','shape.len']
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list_all:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return_other_geom=True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return_oid=True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return_shape=True
&amp;nbsp;&amp;nbsp;&amp;nbsp; if return_oid:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude_Types.remove('OID')
&amp;nbsp;&amp;nbsp;&amp;nbsp; if return_shape:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude_Types.remove('Geometry')
&amp;nbsp;&amp;nbsp;&amp;nbsp; if return_other_geom:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; if len(exclude_fields) &amp;gt; 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ex_f in exclude_fields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude.append(ex_f.lower())
&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; # return either field names or field objects&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if return_object:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_list = [f for f in arcpy.ListFields(in_fc)
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if f.type not in Exclude_Types
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and f.name.lower() not in Exclude]
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_list = [f.name for f in arcpy.ListFields(in_fc)
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if f.type not in Exclude_Types
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and f.name.lower() not in Exclude]
&amp;nbsp;&amp;nbsp;&amp;nbsp; return field_list&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:03:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227099#M17605</guid>
      <dc:creator>StormwaterWater_Resources</dc:creator>
      <dc:date>2021-12-11T11:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a token for everything EXCEPT SHAPE@</title>
      <link>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227100#M17606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This might be a little easier to read and or manage for limiting the return of certain field types and names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os, sys
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
def Main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; src = "" #Enter path to data here
&amp;nbsp;&amp;nbsp;&amp;nbsp; for field in fieldS:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if field.type == 'Geometry' or field.type == 'OID' or 'shape' in str(field.name).lower():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print field.name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
if __name__=="__main__":
&amp;nbsp;&amp;nbsp;&amp;nbsp; Main()&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This might fall more in line with what you were originally trying to do&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy, os, sys
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
def Main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; src = "" # Insert Path to data here
&amp;nbsp;&amp;nbsp;&amp;nbsp; excludeList = ['Geometry','OID','Raster','Guid','Blob']
&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldS = arcpy.ListFields(src)
&amp;nbsp;&amp;nbsp;&amp;nbsp; field_list = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; for field in fieldS:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if any(field.type in s for s in excludeList) or 'shape' in str(field.name).lower():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_list.append(field.name)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print field_list
&amp;nbsp;&amp;nbsp;&amp;nbsp; return field_list
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
if __name__=="__main__":
&amp;nbsp;&amp;nbsp;&amp;nbsp; Main()
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:03:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-a-token-for-everything-except-shape/m-p/227100#M17606</guid>
      <dc:creator>KenCarrier</dc:creator>
      <dc:date>2021-12-11T11:03:41Z</dc:date>
    </item>
  </channel>
</rss>

