<?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: Change symbol rotation - Water utility network in Water Utilities Questions</title>
    <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413529#M844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael and Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked setting values to 0 and them using the calculate field with the attribute rule enabled.&lt;/P&gt;&lt;P&gt;Other issue is that our fittings are not following the "right" line to rotate, as the tap in our example.&lt;/P&gt;&lt;P&gt;We think this problem might be related to which line the fitting is using as a reference, is that right?&lt;/P&gt;&lt;P&gt;Any ideia how to fix this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="345" src="/legacyfs/online/489557_MicrosoftTeams-image (1).png" width="614" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/306308"&gt;Layane Beatriz Silva Loti&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2020 13:18:49 GMT</pubDate>
    <dc:creator>Letíciad_Agosto_Miguel_Fonseca</dc:creator>
    <dc:date>2020-04-22T13:18:49Z</dc:date>
    <item>
      <title>Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413524#M839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to rotate some symbols in my Utility Network PRO project (using ESRI template: water distribution network editor) but I can't change the ones that already have numbers.&lt;/P&gt;&lt;P&gt;Example: I want to change the rotation from 119 to 29, calculating on field calculator it runs, but it brings me back the same number (119). (Image attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be very usefull &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/306308"&gt;Layane Beatriz Silva Loti&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/54595"&gt;Antonio Marcos Pires Martins&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 47px; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 19:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413524#M839</guid>
      <dc:creator>Letíciad_Agosto_Miguel_Fonseca</dc:creator>
      <dc:date>2020-03-31T19:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413525#M840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There might be an attribute rule that is resetting it based on the orientation of the line it intersects with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 20:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413525#M840</guid>
      <dc:creator>PaulLeBlanc1</dc:creator>
      <dc:date>2020-03-31T20:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413526#M841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are awere about the rule attribute, in fact we&amp;nbsp;calculated the rotation for the ones with the value 0 in the attribute table using the numbers that meet the rule criteria.&lt;/P&gt;&lt;P&gt;But how could I edit the ones already populated? Do you know if Is there a way to "turn off" the rule and set to 0 again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 21:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413526#M841</guid>
      <dc:creator>Letíciad_Agosto_Miguel_Fonseca</dc:creator>
      <dc:date>2020-03-31T21:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413527#M842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can disable the rule from &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/disable-attribute-rules.htm"&gt;a GP tool&lt;/A&gt; or design view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally though, if you want to override what the rule is setting, you'd check if there is a value in the field before writing a value to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 21:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413527#M842</guid>
      <dc:creator>PaulLeBlanc1</dc:creator>
      <dc:date>2020-03-31T21:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413528#M843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set the values to null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 22:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413528#M843</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2020-03-31T22:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413529#M844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael and Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked setting values to 0 and them using the calculate field with the attribute rule enabled.&lt;/P&gt;&lt;P&gt;Other issue is that our fittings are not following the "right" line to rotate, as the tap in our example.&lt;/P&gt;&lt;P&gt;We think this problem might be related to which line the fitting is using as a reference, is that right?&lt;/P&gt;&lt;P&gt;Any ideia how to fix this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="345" src="/legacyfs/online/489557_MicrosoftTeams-image (1).png" width="614" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/306308"&gt;Layane Beatriz Silva Loti&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 13:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413529#M844</guid>
      <dc:creator>Letíciad_Agosto_Miguel_Fonseca</dc:creator>
      <dc:date>2020-04-22T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413530#M845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The symbol might need to be rotated in the layer.  Is it always this way, for every tap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 13:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413530#M845</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2020-04-22T13:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413531#M846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The symbols are already rotated in this example. Yes, it is always this way for taps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413531#M846</guid>
      <dc:creator>Letíciad_Agosto_Miguel_Fonseca</dc:creator>
      <dc:date>2020-04-22T14:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413532#M847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then just rotate the symbol in the symbology of the layer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413532#M847</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2020-04-22T14:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413533#M848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I think I was not clear before, sorry about that. I have tap's in different directions, so If I change the rotation of the symbology, it is applied for all of them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="247" src="https://community.esri.com/legacyfs/online/489569_exemplo_rotation.JPG" width="388" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 15:22:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413533#M848</guid>
      <dc:creator>Letíciad_Agosto_Miguel_Fonseca</dc:creator>
      <dc:date>2020-04-22T15:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413534#M849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will have to debug the rule and build out the scenarios.  Are the mains split at that location, what are the lines digitized direction.  Is this the sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 16:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413534#M849</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2020-04-22T16:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413535#M850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the rotation set to Geographic or Arithmetic?  That looks like the issue actually&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 16:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413535#M850</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2020-04-22T16:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413536#M851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, yes this is my sample data.&lt;/P&gt;&lt;P&gt;The mains are not Split (as you can see from selection) and we set to Arithmetic rotation because of the attribute rule. It seems to be following the line direction (Distribution main), but we needed it to be set to the service line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/489586_LineDirection_maerker.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 17:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413536#M851</guid>
      <dc:creator>Letíciad_Agosto_Miguel_Fonseca</dc:creator>
      <dc:date>2020-04-22T17:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413537#M852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you verify this is the rule you are using?&lt;/P&gt;&lt;P&gt;https://github.com/MikeMillerGIS/arcade-expressions/blob/master/attribute_rule_calculation/RotateFeatureByIntersectedLine.md&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the logic, you should be around this section of the code:&lt;/P&gt;&lt;P&gt;else if (Count(angles) == 2) {&lt;/P&gt;&lt;P&gt;    // If the feature is midpan of the first line, return the angle of the second line&lt;/P&gt;&lt;P&gt;    if (angles[0]['type'] == 'mid')&lt;/P&gt;&lt;P&gt;        return angles[1]['angle'];&lt;/P&gt;&lt;P&gt;    // If the feature is midpan of the second line, return the angle of the first line&lt;/P&gt;&lt;P&gt;    else if (angles[1]['type'] == 'mid')&lt;/P&gt;&lt;P&gt;        return angles[0]['angle'];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you create a pop up on taps and use this rule.  Then you can add to the return statements to see what part is being users?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else if (Count(angles) == 2) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    // If the feature is midpan of the first line, return the angle of the second line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if (angles[0]['type'] == 'mid')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        return “Count 2, angle 1 is mid” + angles[1]['angle'];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    // If the feature is midpan of the second line, return the angle of the first line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    else if (angles[1]['type'] == 'mid')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        return Count 2, angle 2 is mid” + angles[0]['angle'];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 18:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413537#M852</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2020-04-22T18:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change symbol rotation - Water utility network</title>
      <link>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413538#M853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-decoration: none;"&gt;Hi Michael,&amp;nbsp;&lt;/P&gt;&lt;P style="text-decoration: none;"&gt;&lt;/P&gt;&lt;P style="text-decoration: none;"&gt;&lt;SPAN style="background-color: #ffffff; font-weight: inherit; text-decoration: none; font-size: 100%;"&gt;It worked using the rule with multiple lines. I &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-weight: inherit; text-decoration: none; font-size: 100%;"&gt;set everything to null using the calculate field and changed the symbology layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-decoration: none;"&gt;&lt;/P&gt;&lt;P style="text-decoration: none;"&gt;&lt;SPAN style="background-color: #ffffff; font-weight: inherit; text-decoration: none; font-size: 100%;"&gt;But when I insert new features, it is returning 0 and I have to calculate null values to trigger the rule. I saw there is an issue with Arcade returning 0&amp;nbsp;instead of null :&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExOTA2NA==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExOTA2NA=="&gt;BUG-000119064: Calculating a value to null using Arcade returns 0..&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-decoration: none;"&gt;&lt;SPAN style="background-color: #ffffff; font-weight: inherit; text-decoration: none; font-size: 100%;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-decoration: none;"&gt;&lt;SPAN style="background-color: #ffffff; font-weight: inherit; text-decoration: none; font-size: 100%;"&gt;This is how the code looks like now:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-decoration: none;"&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;// This calculation attribute rule intersects a line layer and based on the number of&lt;BR /&gt; // intersected features, calculates the angle for the point&lt;BR /&gt; // Set to true if the rotation setting is set to geographic in the layer properties&lt;BR /&gt; var geographic_rotation = false;&lt;BR /&gt; // Set the counter clockwise spin angle used for the symbol in the symbology options&lt;BR /&gt; var symbol_flip_angle = 0&lt;BR /&gt; // Return if a value is already set, to recalculate an angle, the field must be set to null&lt;BR /&gt; if (IsEmpty($feature.symbolrotation) == false) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; return $feature.symbolrotation;&lt;BR /&gt; }&lt;BR /&gt; &lt;STRONG&gt;else if ($feature.symbolrotation == 0) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; return null;&lt;/STRONG&gt;&lt;BR /&gt; }&lt;BR /&gt; // Create a feature set to the line layer&lt;BR /&gt; var lineClass = FeatureSetByName($datastore, "L515Water_Line", ["objectid"], true);&lt;BR /&gt; // Find the intersecting lines&lt;BR /&gt; var lines = Intersects(lineClass, $feature);&lt;BR /&gt; //If no lines intersect, return the original value&lt;BR /&gt; if (Count(lines) == 0) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; return $feature.symbolrotation;&lt;BR /&gt; }&lt;BR /&gt; var diff_tol = 5;&lt;BR /&gt; // Variable to store all found angles&lt;BR /&gt; var angles = [];&lt;BR /&gt; // Store the features geometry&lt;BR /&gt; var feature_geometry = Geometry($feature);&lt;BR /&gt; // Loop over all intersecting lines and find their angles&lt;BR /&gt; var angle_type;&lt;BR /&gt; var angle_value;&lt;BR /&gt; for (var line in lines) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // Buffer and create an extenf of the point by a small amount to extract the segment&lt;BR /&gt; &amp;nbsp; &amp;nbsp; var clip_area = Extent(Buffer($feature, .01, "meter"));&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // Clip the line by the extend and get the first line segment&lt;BR /&gt; &amp;nbsp; &amp;nbsp; var segment = Clip(line, clip_area)["paths"][0];&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // The features location is on the start of the line, get the angle from the feature to the end vertex&lt;BR /&gt; &amp;nbsp; &amp;nbsp; if (Equals(segment[0], feature_geometry)) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; angle_type = 'from'&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; angle_value = Round(Angle(feature_geometry, segment[-1]), 0)&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // The features location is on the end of the line, create a new segment from the feature to the start vertex&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else if (Equals(segment[-1], feature_geometry)) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; angle_type = 'to'&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; angle_value = Round(Angle(feature_geometry, segment[0]), 0)&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // The features location is midspan of the segment, use the angle of the segment&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; angle_type = 'mid'&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; angle_value = Round(Angle(segment[0], segment[-1]), 0)&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; if (geographic_rotation == true) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Convert Arithmetic to Geographic&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; angle_value = (450 - angle_value) % 360;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // Add 180 to match 0 rotation in the TOC&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // Add user specified spin angle if their symbol is rotated&lt;BR /&gt; &amp;nbsp; &amp;nbsp; angle_value = (angle_value + 180 + symbol_flip_angle) % 360;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; angles[Count(angles)] = {'angle': angle_value, 'type': angle_type};&lt;BR /&gt; }&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;// If only one angle, return that value&lt;BR /&gt; if (Count(angles) == 1) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If the point is midspan, flip to match symbol as it if was on the end point&lt;BR /&gt; &amp;nbsp; &amp;nbsp; if (angles[0]['type'] == 'mid')&lt;BR /&gt; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (angles[0]['angle'] + 180) % 360;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; return angles[0]['angle'];&lt;BR /&gt; } else if (Count(angles) == 2) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If the feature is midpan of the first line, return the angle of the second line&lt;BR /&gt; &amp;nbsp; &amp;nbsp; if (angles[0]['type'] == 'mid')&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return angles[1]['angle'];&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If the feature is midpan of the second line, return the angle of the first line&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else if (angles[1]['type'] == 'mid')&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return angles[0]['angle'];&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If the feature is at the end point of both lines, return the angle of the first line&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else if (angles[0]['type'] == 'to' &amp;amp;&amp;amp; angles[1]['type'] == 'to') {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return angles[0]['angle'];&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If the feature is at the start point of both lines, return the angle of the first line&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else if (angles[0]['type'] == 'from' &amp;amp;&amp;amp; angles[1]['type'] == 'from') {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return angles[0]['angle'];&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If the feature is at the start point of the first line and end of the second line, return the second line&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else if (angles[0]['type'] == 'from') {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return angles[1]['angle'];&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If the feature is at the start point of the second line and start of the second line, return the first line&lt;BR /&gt; &amp;nbsp; &amp;nbsp; return angles[0]['angle'];&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;} else if (Count(angles) == 3) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // Flatten the angles to ignore direction&lt;BR /&gt; &amp;nbsp; &amp;nbsp; var flat_angle1 = angles[0]['angle'] % 180;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; var flat_angle2 = angles[1]['angle'] % 180;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; var flat_angle3 = angles[2]['angle'] % 180;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // Create differences between angles&lt;BR /&gt; &amp;nbsp; &amp;nbsp; var angle_dif_a = Abs(flat_angle1 - flat_angle2);&lt;BR /&gt; &amp;nbsp; &amp;nbsp; var angle_dif_b = Abs(flat_angle1 - flat_angle3);&lt;BR /&gt; &amp;nbsp; &amp;nbsp; var angle_dif_c = Abs(flat_angle2 - flat_angle3);&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If difference between line 1 and 2 is below the tolerance, meaning the lines follow the ame plane, return the&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // third line&lt;BR /&gt; &amp;nbsp; &amp;nbsp; if (angle_dif_a &amp;lt;= (diff_tol * 2) || angle_dif_a &amp;gt;= (180 - (diff_tol * 2))) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return angles[2]['angle'];&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If difference between line 1 and 3 is below the tolerance, meaning the lines follow the ame plane, return the&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // second line&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else if (angle_dif_b &amp;lt;= (diff_tol * 2) || angle_dif_b &amp;gt;= (180 - (diff_tol * 2))) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return angles[1]['angle'];&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // If difference between line 2 and 3 is below the tolerance, meaning the lines follow the ame plane, return the&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // first line&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else if (angle_dif_c &amp;lt;= (diff_tol * 2) || angle_dif_c &amp;gt;= (180 - (diff_tol * 2))) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return angles[0]['angle'];&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // Return first if not covered above&lt;BR /&gt; &amp;nbsp; &amp;nbsp; return angles[0]['angle'];&lt;BR /&gt; }&lt;BR /&gt; // All other cases, the first feature is returned&lt;BR /&gt; else {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; return angles[0]['angle'];&lt;BR /&gt; }&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://community.esri.com/migrated-users/306308"&gt;Layane Beatriz Silva Loti&lt;/A&gt;‌&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2020 14:12:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/change-symbol-rotation-water-utility-network/m-p/413538#M853</guid>
      <dc:creator>Letíciad_Agosto_Miguel_Fonseca</dc:creator>
      <dc:date>2020-04-23T14:12:51Z</dc:date>
    </item>
  </channel>
</rss>

