<?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: How to construct marker line symbology in ArcGIS Pro SDK in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1108832#M7253</link>
    <description>&lt;P&gt;Working with symbology can be a bit tricky.&amp;nbsp; A good way to discover the inner makings of a symbol is to use the CIMViewer add-in:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-cim-viewer" target="_blank"&gt;Esri/arcgis-pro-sdk-cim-viewer (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can download the CIMViewer source and build the add-in.&amp;nbsp; Next you have to construct the desired symbology using the Pro User Interface and then use the CIMViewer to examine the makings of your symbol.&amp;nbsp; The CIMViewer readme.md provides some help on usage.&amp;nbsp; Once you have the XML for your symbol using the CIMViewer you can then implement your symbology in code.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 14:55:43 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2021-10-19T14:55:43Z</dc:date>
    <item>
      <title>How to construct marker line symbology in ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1108768#M7250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to construct the Marker line symbology perpendicular to the route layer, which should look like the attached screenshot.&lt;/P&gt;&lt;P&gt;However, I tried the code below, but I'm not sure if I'm on the right track.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShabinaBano_1-1634641489108.png" style="width: 791px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25513iE77DACFCEE0AAF87/image-dimensions/791x277?v=v2" width="791" height="277" role="button" title="ShabinaBano_1-1634641489108.png" alt="ShabinaBano_1-1634641489108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Expected Output :&lt;/P&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="ShabinaBano_0-1634641284018.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25512iE5134CFC5306FB12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShabinaBano_0-1634641284018.png" alt="ShabinaBano_0-1634641284018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone please guide me here, how can I achieve this through C#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 11:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1108768#M7250</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-10-19T11:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct marker line symbology in ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1108832#M7253</link>
      <description>&lt;P&gt;Working with symbology can be a bit tricky.&amp;nbsp; A good way to discover the inner makings of a symbol is to use the CIMViewer add-in:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-cim-viewer" target="_blank"&gt;Esri/arcgis-pro-sdk-cim-viewer (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can download the CIMViewer source and build the add-in.&amp;nbsp; Next you have to construct the desired symbology using the Pro User Interface and then use the CIMViewer to examine the makings of your symbol.&amp;nbsp; The CIMViewer readme.md provides some help on usage.&amp;nbsp; Once you have the XML for your symbol using the CIMViewer you can then implement your symbology in code.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 14:55:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1108832#M7253</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-10-19T14:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct marker line symbology in ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1108899#M7254</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;yes, I think you are on the right track. Look at AngleToLine in your code. If true then the marker will follow the direction of the line (this is the default).&lt;/STRIKE&gt; &lt;STRIKE&gt;If false then the marker is placed perpendicular to the line.&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;scratch that, that's not accurate. false just means that the marker orientation is not affected by the line slope. I think you have to design your marker symbol with a rotation on its symbol layers such that, when angletoline=true, it appears perpendicular to the line.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 16:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1108899#M7254</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2021-10-19T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct marker line symbology in ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1109550#M7258</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/145101"&gt;@CharlesMacleod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I see your point, but my question is how to construct the marker symbol using code. Do you have a snippet for this? It would be extremely beneficial to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 06:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1109550#M7258</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-10-21T06:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct marker line symbology in ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1110014#M7262</link>
      <description>&lt;P&gt;I think Wolf gives an excellent suggestion - in many cases, the best way to figure out the CIM is to _deconstruct_ an object that already has the desired behavior - in this case a symbol.&lt;/P&gt;&lt;P&gt;So, if I go to the symbology dockpane, I do see a few of the predefined symbols that have similar behavior to what you are after - in ArcGIS 2D, the Railroad symbol, Hatch Line symbol, and Line with Marker, Continuous symbol all look like good candidates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, using the Railroad symbol, for example:&amp;nbsp; if I apply a Perpendicular offset of 3 pt and change the placement template to 5 (like u have in your code), I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="railroad_symbol.png" style="width: 368px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25821i101765112D49795B/image-size/large?v=v2&amp;amp;px=999" role="button" title="railroad_symbol.png" alt="railroad_symbol.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which is similar to what u are after.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marker_placement.png" style="width: 408px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25822i4C1D38D9BA483D0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="marker_placement.png" alt="marker_placement.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I view the symbol in the &lt;A href="https://github.com/Esri/arcgis-pro-sdk-cim-viewer" target="_blank" rel="noopener"&gt;CIM Viewer&lt;/A&gt; (with the CIM Viewer dockpane open, just click on the layer in the TOC and scroll down to its renderer) I see this as the definition for the MarkerPlacement on the marker in the line symbol corresponding to those UI settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marker_placement_cim.png" style="width: 745px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25823iC3EDDD9A567B3DEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="marker_placement_cim.png" alt="marker_placement_cim.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This gives u a clue about how to code the symbol and u can apply the relevant settings, etc. I have a whole session on the CIM and use of the CIM Viewer &lt;A href="https://www.youtube.com/watch?v=MP90p-jkA5Q&amp;amp;list=PLN5okgNxFYJo_gcO1snNlEFMHDwxdlwFU&amp;amp;index=9" target="_self"&gt;here&lt;/A&gt; and another session on CIM symbology &lt;A href="https://www.youtube.com/watch?v=N5f_KdkGmz8&amp;amp;list=PLN5okgNxFYJqdkHHeaD1Bfi8j7JODWWyh&amp;amp;index=2" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, this XML in the CIM Viewer tells me that the marker, from railRoadSymbol.SymbolLayers[0]&amp;nbsp; has a MarkerPlacement defined as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var marker = lineSymbol.SymbolLayers[0] as CIMVectorMarker;
marker.MarkerPlacement = new CIMMarkerPlacementAlongLineSameSize(){
  PlacePerPart = true,
  AngleToLine = true,
  Offset = 3,//&amp;lt;-- Perpendicular offset
  ControlPointPlacement = PlacementEndings.WithMarkers,
  PlacementTemplate = new double[] { 5 }
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on and so on........ The idea is to fiddle with the UI to tweak your symbol and get it the way u want it. Then deconstruct in the CIM Viewer and transfer what u observe in the XML structure to your code. This is an iterative process.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 22:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-line-symbology-in-arcgis/m-p/1110014#M7262</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2021-10-21T22:17:56Z</dc:date>
    </item>
  </channel>
</rss>

