<?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: Arcade for complex line symbology in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1042283#M39131</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;One more question&lt;/P&gt;&lt;P&gt;Is it possible to add condition regarding color and thickness like:&lt;/P&gt;&lt;P&gt;else if (y == "Secondary" &amp;amp;&amp;amp; x &amp;lt; 2 &amp;amp;&amp;amp; x &amp;gt; 0.8) {&lt;BR /&gt;return "Medium Fault";&lt;BR /&gt;return rgb(0, 7, 186);&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anzhelika&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 04:47:42 GMT</pubDate>
    <dc:creator>Anzhi</dc:creator>
    <dc:date>2021-03-31T04:47:42Z</dc:date>
    <item>
      <title>Arcade for complex line symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1036545#M38517</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I have a line feature class, in the attributes of which there is a field "Type", and "Thickness", I need to make a complex Symbology that unites these 2 fields.&lt;BR /&gt;It would seem an easy task, but the lines are constantly updated and the values in the "Thickness" field as well.&lt;BR /&gt;I need to make sure that the "Thickness" field is graded, such as from 0 - 2, 2.5-4, etc. and at the same time it was merged with the "Type" field as in the picture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Symbology.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8456i4E9706CB669FB73B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Symbology.png" alt="Symbology.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="UdTY9 BwTYAc"&gt;&lt;DIV class="kO6q6e"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="FFpbKc"&gt;&lt;DIV&gt;&lt;DIV class=" B2mKhd  eQGGme FYRjob"&gt;&lt;SPAN&gt;I am completely new to using Arcade, but I think that you can create an expression that will solve my problem&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="dePhmb"&gt;&lt;DIV class="eyKpYb"&gt;&lt;DIV class="J0lOec"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Mar 2021 12:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1036545#M38517</guid>
      <dc:creator>Anzhi</dc:creator>
      <dc:date>2021-03-15T12:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade for complex line symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1036561#M38520</link>
      <description>&lt;P&gt;I think you can only represent one field for each feature layer.&lt;/P&gt;&lt;P&gt;One solution is to make a copy of the line file: The first one will represent the "type" field, and the other one will represent the "thickness field"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 12:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1036561#M38520</guid>
      <dc:creator>MohamadAchour</dc:creator>
      <dc:date>2021-03-15T12:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade for complex line symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1036585#M38521</link>
      <description>&lt;P&gt;There are a couple of ways to accomplish this.&lt;/P&gt;&lt;H4&gt;Vary Symbology by Attribute&lt;/H4&gt;&lt;P&gt;On the symbology pane, click over to the second tab:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1615813534689.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8461i4A57623E9AF99911/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1615813534689.png" alt="jcarlson_0-1615813534689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can either "peg" the line's thickness to a field's value, as shown below, or you can check the box &lt;STRONG&gt;Enable Size Range&lt;/STRONG&gt;, to scale the line's thickness to its relative position in the full range of values in the field. Useful for when your field goes up fairly high, say for a "max speed" field, where you don't want 60-pt lines.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1615814354549.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8465i5706C08D66AED45E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1615814354549.png" alt="jcarlson_1-1615814354549.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Setting any color, size, or transparency attribute on this tab will be &lt;EM&gt;in addition &lt;/EM&gt;to the symbology settings on the main tab. So in the situation you've posted about, you can set the "type" symbols any way you like, then define the width as being controlled by the thickness field here.&lt;/P&gt;&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;&lt;H4&gt;Symbol Property Connections&lt;/H4&gt;&lt;P&gt;This is one of my favorite things in complex symbology. On the &lt;STRONG&gt;Symbology by Attribute&lt;/STRONG&gt; pane, there's a checkbox to &lt;STRONG&gt;allow symbol property connections&lt;/STRONG&gt;, visible in the first image above. Checking that box adds little symbols to the symbology tab.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_3-1615814606111.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8467i1E7144A1C6442644/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_3-1615814606111.png" alt="jcarlson_3-1615814606111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Clicking on one of those will set a property as being connected to an attribute (or an expression). You'll notice in the image above that there is an up arrow next to width. This indicates that the width attribute is being overridden by the setting I put in place earlier, and I cannot put an addition property connection onto it.&lt;/P&gt;&lt;P&gt;Using this option does not automatically scale your values to a defined range as in the section above, but some basic&amp;nbsp; Arcade scripting can accomplish the same effect if it is needed.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1036585#M38521</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-15T13:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade for complex line symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1037037#M38567</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp; very interesting tool.&lt;/P&gt;&lt;P&gt;But for now I would like to create Categories with using Arcade like:&lt;/P&gt;&lt;P&gt;If( $feature.Thickness&amp;lt; 0.8 + $feature.Type == 'Secondary')&lt;BR /&gt;{&lt;BR /&gt;return "Secondary up to 0.8"&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;else if ($feature.Thickness &amp;lt; 0.8 + $feature.Type == 'Secondary')&lt;BR /&gt;{&lt;BR /&gt;return "Vein up to 0.8"&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;after this code everythink is OK in Arcade window, but after when I click OK, I have message "Requested operation could not be completed"&lt;/P&gt;&lt;P&gt;could you please advise&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 10:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1037037#M38567</guid>
      <dc:creator>Anzhi</dc:creator>
      <dc:date>2021-03-16T10:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade for complex line symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1037082#M38574</link>
      <description>&lt;P&gt;Yes, that's possible as well! However, in order to use an expression-based classification, you'll either need to lump all your evaluations (type and width together) into one expression, or the expression needs to be done via a property connection.&lt;/P&gt;&lt;H4&gt;All in One&lt;/H4&gt;&lt;P&gt;This is probably the route you want to go, since your numeric value is in discrete classes. We'll take the &lt;EM&gt;Type&lt;/EM&gt; value and just append to it different text based on the width. Unless there's more going on than your screenshot implies, it looks like you just want the "type" field value, without any further evaluation, combined with a numeric classification.&lt;/P&gt;&lt;P&gt;Set the symbology to &lt;STRONG&gt;Unique Values&lt;/STRONG&gt; and set the Field to an expression like the following:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;var w = $feature.width
var width_str

// Here we define the width classification ranges
if(w &amp;lt; 0.8){
    width_str = ' up to 0.8'
} else if (w &amp;lt; 2) {
    width_str = ' between 0.8 and 2'
} else if ....

// and so on

return $feature.Type + width_str&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because the if/else if statements evaluate in order, there's no need to do a "w &amp;gt; N and w &amp;lt; M", as the "greater than" portion is accounted for in the preceding if statement.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 12:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1037082#M38574</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-16T12:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade for complex line symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1042281#M39129</link>
      <description>&lt;P&gt;Thanks a lot. This was very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anzhelika&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 04:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1042281#M39129</guid>
      <dc:creator>Anzhi</dc:creator>
      <dc:date>2021-03-31T04:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade for complex line symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1042283#M39131</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;One more question&lt;/P&gt;&lt;P&gt;Is it possible to add condition regarding color and thickness like:&lt;/P&gt;&lt;P&gt;else if (y == "Secondary" &amp;amp;&amp;amp; x &amp;lt; 2 &amp;amp;&amp;amp; x &amp;gt; 0.8) {&lt;BR /&gt;return "Medium Fault";&lt;BR /&gt;return rgb(0, 7, 186);&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anzhelika&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 04:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1042283#M39131</guid>
      <dc:creator>Anzhi</dc:creator>
      <dc:date>2021-03-31T04:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade for complex line symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1042416#M39156</link>
      <description>&lt;P&gt;For color, I'd just write additional if statements and create a separate symbology category, then make the changes there. Returning a color value in the symbology expression probably won't work, though I've not tested it.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 15:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-for-complex-line-symbology/m-p/1042416#M39156</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-31T15:12:21Z</dc:date>
    </item>
  </channel>
</rss>

