<?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: Discover renderer line symbol type in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/discover-renderer-line-symbol-type/m-p/685576#M18423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's probably a IMultiLayerLineSymbol if you set it through the UI.&amp;nbsp; If it is, you'll need to loop through the layers in the symbol to find the one you're looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2014 19:34:20 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2014-04-25T19:34:20Z</dc:date>
    <item>
      <title>Discover renderer line symbol type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/discover-renderer-line-symbol-type/m-p/685574#M18421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to figure out how to discover if the symbol class from a simple renderer is CartographicLineSymbol in vb.NET&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the documentation ISimpleRenderer.Symbol returns ISymbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the documentation ISymbol implements several line symbol classes (CartographicLineSymbol, HashLineSymbol, etc.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I set layer's symbol "Type" to "Cartographic Line Symbol" in the properties and yet this code is not working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim rendLinks As ISimpleRenderer = geoLyrLinks.Renderer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim aSymbol As ISymbol = rendLinks.Symbol&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If TypeOf aSymbol Is ICartographicLineSymbol Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("i'm a cartographiclinesymbol")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("NOT a cartographiclinesymbol")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone tell me what I'm doing wrong?&amp;nbsp; Or can someone tell me how to simply retrieve the symbol class from a simple renderer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 18:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/discover-renderer-line-symbol-type/m-p/685574#M18421</guid>
      <dc:creator>MartinLewis</dc:creator>
      <dc:date>2014-04-25T18:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Discover renderer line symbol type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/discover-renderer-line-symbol-type/m-p/685575#M18422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the code above:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim aSymbol as ISymbol = rendLinks.Symbol&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;seems to return aSymbol as type ILineSymbol, regardless of what symbol class is defined in the renderer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 19:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/discover-renderer-line-symbol-type/m-p/685575#M18422</guid>
      <dc:creator>MartinLewis</dc:creator>
      <dc:date>2014-04-25T19:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Discover renderer line symbol type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/discover-renderer-line-symbol-type/m-p/685576#M18423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's probably a IMultiLayerLineSymbol if you set it through the UI.&amp;nbsp; If it is, you'll need to loop through the layers in the symbol to find the one you're looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 19:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/discover-renderer-line-symbol-type/m-p/685576#M18423</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2014-04-25T19:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Discover renderer line symbol type</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/discover-renderer-line-symbol-type/m-p/685577#M18424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much.&amp;nbsp; I just happened to stumble on a similar thread that was pointing me in this direction, but your tip got me there faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tested this - it seems that when changing the line symbol through ArcMap (Symbol Selector&amp;gt;Edit Symbol&amp;gt;Symbol Property Editor) and selecting Cartographic Line Symbol the new symbol is a IMultiLayerLineSymbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I just need to figure out how to loop thru the layers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 19:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/discover-renderer-line-symbol-type/m-p/685577#M18424</guid>
      <dc:creator>MartinLewis</dc:creator>
      <dc:date>2014-04-25T19:56:18Z</dc:date>
    </item>
  </channel>
</rss>

