<?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: Deletion of structural attachment association in bulk in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/deletion-of-structural-attachment-association-in/m-p/1242907#M2236</link>
    <description>&lt;P&gt;You can delete associations via Arcade e.g.&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-utility-network-questions/create-an-attribute-rule-to-delete-the-containment/m-p/1149457" target="_blank"&gt;https://community.esri.com/t5/arcgis-utility-network-questions/create-an-attribute-rule-to-delete-the-containment/m-p/1149457&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could you combine this with a batch calculation attribute rule?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 11:10:06 GMT</pubDate>
    <dc:creator>jclarke</dc:creator>
    <dc:date>2022-12-21T11:10:06Z</dc:date>
    <item>
      <title>Deletion of structural attachment association in bulk</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/deletion-of-structural-attachment-association-in/m-p/1237720#M2228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have defined Structure attachment rule between Structure Junction feature and Electrical Junction feature.&lt;BR /&gt;I created about 40,000 attachments using the &lt;STRONG&gt;Append&lt;/STRONG&gt; tool. How can I remove these attachments from data in bulk.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//$feature is an ElectricJunction
var sjFeatureSet = FeatureSetByname($datastore, "StructureJunction", ["objectid"] ,false)

// Asset Group	101-102-103-104-105
// Asset Type	111-112-120-121-122-130-131-132-133-134-381-382-383-470-471-473-474-475-476-477-478-479-480-481-482

var polesFeatureSet = Filter(sjFeatureSet, "ASSETGROUP in (101,102,103,104,105) AND ASSETTYPE in (111,112,120,121,122,130,131,132,133,134,381,382,383,470,471,473,474,475,476,477,478,479,480,481,482)")

//buffer
var g = buffer($feature, 0)

var intersectedPoles = Intersects(polesFeatureSet,g)

if (count(intersectedPoles) == 0) 
  return $feature.Note;

var pole = first(intersectedPoles)

return {

         "result": $feature.Note,
         "edit": 
              [
                {
                 "className": "structurejunction",

                 "updates":
                 [
                   {
                   "objectID": pole.objectid,
                   "associationType": 'structure'
                   }
                 ]
                }
              ]
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="existing association.jpg" style="width: 379px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57635iEA6B9724F6E6AB21/image-size/large?v=v2&amp;amp;px=999" role="button" title="existing association.jpg" alt="existing association.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 12:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/deletion-of-structural-attachment-association-in/m-p/1237720#M2228</guid>
      <dc:creator>GIS_Solutions</dc:creator>
      <dc:date>2022-12-05T12:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion of structural attachment association in bulk</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/deletion-of-structural-attachment-association-in/m-p/1242907#M2236</link>
      <description>&lt;P&gt;You can delete associations via Arcade e.g.&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-utility-network-questions/create-an-attribute-rule-to-delete-the-containment/m-p/1149457" target="_blank"&gt;https://community.esri.com/t5/arcgis-utility-network-questions/create-an-attribute-rule-to-delete-the-containment/m-p/1149457&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could you combine this with a batch calculation attribute rule?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 11:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/deletion-of-structural-attachment-association-in/m-p/1242907#M2236</guid>
      <dc:creator>jclarke</dc:creator>
      <dc:date>2022-12-21T11:10:06Z</dc:date>
    </item>
  </channel>
</rss>

