<?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: Set ISCONNECTED field via ArcGIS Pro SDK in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/set-isconnected-field-via-arcgis-pro-sdk/m-p/1572654#M4731</link>
    <description>&lt;P&gt;Hi Rich -&lt;/P&gt;&lt;P&gt;Finally got a chance to try this.&amp;nbsp; Works like a champ.&amp;nbsp; Thanks much!&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jan 2025 00:57:23 GMT</pubDate>
    <dc:creator>EdwardBlair</dc:creator>
    <dc:date>2025-01-05T00:57:23Z</dc:date>
    <item>
      <title>Set ISCONNECTED field via ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/set-isconnected-field-via-arcgis-pro-sdk/m-p/1572216#M4728</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;I'm trying to create an ElectricJunction feature using the ArcGIS Pro SDK.&amp;nbsp; &amp;nbsp;Below is a snippet of the code that creates the feature.&amp;nbsp; &amp;nbsp; &amp;nbsp;All non-nullable fields are set, except ASSOCIATIONSTATUS and ISCONNECTED.&amp;nbsp; &amp;nbsp;When I hit the "CreateRow" statement I always get the error "Field is not Nullable".&amp;nbsp; &amp;nbsp;However, when I try to assign a value to either ASSOCIATIONSTATUS or ISCONNECTED I get the error "Field cannot be assigned" (or something similar.)&lt;/P&gt;&lt;P&gt;So, I'm missing something fundamental here.&amp;nbsp; &amp;nbsp;Any guidance would be much appreciated.&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;// Create a new junction feature here&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;using (RowBuffer rowBuffer = junctionFC.CreateRowBuffer())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer["ASSETGROUP"] = assetGroup;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer["ASSETTYPE"] = assetType;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;//rowBuffer["ASSOCIATIONSTATUS"] = 0; // Default&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;//rowBuffer["ISCONNECTED"] = 2;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer["PHASESNORMAL"] = 7; // ABC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer["PHASESENERGIZED"] = 7;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer["PHASESSUMMER"] = 7;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer["PHASESWINTER"] = 7;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer["PHASESPLAN"] = 7;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer["LIFECYCLESTATUS"] = 2; // In Service&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer["CONSTRUCTIONSTATUS"] = 5; // Existing&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;rowBuffer[junctionClassDefinition.GetShapeField()] = mp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;using (Feature newFeature = junctionFC.CreateRow(rowBuffer))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;context.Invalidate(newFeature);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;createCount++;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 19:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/set-isconnected-field-via-arcgis-pro-sdk/m-p/1572216#M4728</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2025-01-02T19:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set ISCONNECTED field via ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/set-isconnected-field-via-arcgis-pro-sdk/m-p/1572496#M4730</link>
      <description>&lt;P&gt;Happy New Year, Ed!&lt;/P&gt;&lt;P&gt;I'd recommend using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7710.html" target="_self"&gt;CreateRowBuffer(Subtype) overload&lt;/A&gt;; this should set all fields to their default values, even the non-user editable ones.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 17:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/set-isconnected-field-via-arcgis-pro-sdk/m-p/1572496#M4730</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2025-01-03T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set ISCONNECTED field via ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/set-isconnected-field-via-arcgis-pro-sdk/m-p/1572654#M4731</link>
      <description>&lt;P&gt;Hi Rich -&lt;/P&gt;&lt;P&gt;Finally got a chance to try this.&amp;nbsp; Works like a champ.&amp;nbsp; Thanks much!&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2025 00:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/set-isconnected-field-via-arcgis-pro-sdk/m-p/1572654#M4731</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2025-01-05T00:57:23Z</dc:date>
    </item>
  </channel>
</rss>

