<?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 Set a default domain value in a subtype definition using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-set-a-default-domain-value-in-a-subtype/m-p/1117535#M62993</link>
    <description>&lt;P&gt;Ah thank you very much.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 01:34:58 GMT</pubDate>
    <dc:creator>IanHamilton2</dc:creator>
    <dc:date>2021-11-17T01:34:58Z</dc:date>
    <item>
      <title>How to Set a default domain value in a subtype definition using Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-set-a-default-domain-value-in-a-subtype/m-p/1116217#M62966</link>
      <description>&lt;P&gt;Hi I have been searching through the help to find a solution for this&amp;nbsp; but have had no success.&lt;/P&gt;&lt;P&gt;I am using python in Arc Desktop&lt;/P&gt;&lt;P&gt;I am creating a subtype and need to set a default value for domain which is used in a subtype field definition.&lt;/P&gt;&lt;P&gt;for those who have looked in detail there is a tuple of (None, None) where there is no domain on a particular field.&lt;/P&gt;&lt;P&gt;(None, &amp;lt;domainobject&amp;gt;) where there is a domain value but no default value set&lt;/P&gt;&lt;P&gt;how can I set (some value belonging to the domain, &amp;lt;domainobject&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't found a python way of doing this.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 05:04:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-set-a-default-domain-value-in-a-subtype/m-p/1116217#M62966</guid>
      <dc:creator>IanHamilton2</dc:creator>
      <dc:date>2021-11-12T05:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a default domain value in a subtype definition using Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-set-a-default-domain-value-in-a-subtype/m-p/1116699#M62979</link>
      <description>&lt;P&gt;Pretty simple -&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.AssignDefaultToField_management(fc_path, fld_name, def_val, subtype_code)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 22:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-set-a-default-domain-value-in-a-subtype/m-p/1116699#M62979</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2021-11-14T22:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a default domain value in a subtype definition using Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-set-a-default-domain-value-in-a-subtype/m-p/1117535#M62993</link>
      <description>&lt;P&gt;Ah thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 01:34:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-set-a-default-domain-value-in-a-subtype/m-p/1117535#M62993</guid>
      <dc:creator>IanHamilton2</dc:creator>
      <dc:date>2021-11-17T01:34:58Z</dc:date>
    </item>
  </channel>
</rss>

