<?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: Code in field Default Value for Unique ID? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/code-in-field-default-value-for-unique-id/m-p/603534#M47160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant! This Attribute Assistant is Awesome! I had heard about it briefly in the past but never took the time to learn it or implement it. I did that yesterday and it's a dream come true. &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;Thank you so much for reminding me about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 15:48:13 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-07-01T15:48:13Z</dc:date>
    <item>
      <title>Code in field Default Value for Unique ID?</title>
      <link>https://community.esri.com/t5/python-questions/code-in-field-default-value-for-unique-id/m-p/603532#M47158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if I can do something to automate this process. Currently I add a point to my feature class and I manually type in "N" + the OBJECTID in my "UniqueID" field. Is there a way I can code the field default value to be "N" + !OBJECTID! so it just adds that value when I create the point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 16:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-in-field-default-value-for-unique-id/m-p/603532#M47158</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-06-30T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Code in field Default Value for Unique ID?</title>
      <link>https://community.esri.com/t5/python-questions/code-in-field-default-value-for-unique-id/m-p/603533#M47159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With python this would involve post processing (i.e. after you add features you'd need to run a script to update these values). If you wanted to execute this as you create features you would need either an editor extension (Python or ArcObjects) or a feature class extension (ArcObjects). In the editor extension you would need to listen for the on create event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An easier option may be to use the Attribute Assistant to automate this task.&amp;nbsp; You could leverage the Dynamic Table functionality within it that could automate populating your fields with the needed values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dynamic Value Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/localgovernment/10.2/index.html#/Dynamic_Value_table/028s0000008z000000/"&gt;http://resources.arcgis.com/en/help/localgovernment/10.2/index.html#/Dynamic_Value_table/028s0000008z000000/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 16:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-in-field-default-value-for-unique-id/m-p/603533#M47159</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-06-30T16:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Code in field Default Value for Unique ID?</title>
      <link>https://community.esri.com/t5/python-questions/code-in-field-default-value-for-unique-id/m-p/603534#M47160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant! This Attribute Assistant is Awesome! I had heard about it briefly in the past but never took the time to learn it or implement it. I did that yesterday and it's a dream come true. &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;Thank you so much for reminding me about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 15:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-in-field-default-value-for-unique-id/m-p/603534#M47160</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-07-01T15:48:13Z</dc:date>
    </item>
  </channel>
</rss>

