<?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: Working with line styles in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1373455#M12477</link>
    <description>&lt;P&gt;I am reading values from .dgn file which is supported by&amp;nbsp;&lt;SPAN&gt;ArcGIS Maps SDK. I am inspecting CIM values in cim viewer plugin for ArcGIS Pro, and there in&amp;nbsp;DashTemplate I see values 10 and 6. When I inspect raw values from code I see 0.1471 and&amp;nbsp;0.0735. The raw values I am seeing are in meters. I was wondering what could be the factor that is influencing 0.1471 to become 10 and 0.0753 to become 6?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 15:26:08 GMT</pubDate>
    <dc:creator>IvonaJovanovic</dc:creator>
    <dc:date>2024-01-23T15:26:08Z</dc:date>
    <item>
      <title>Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1367759#M12440</link>
      <description>&lt;P&gt;I am trying to recognize line styles from data input and show them properly on the map. What would be the best approach to achieve this?&lt;/P&gt;&lt;P&gt;I've noticed that we can't rely on line style names because some of the data inputs have customized line styles. I've tried relying on dash length line style values but line styles with the same name have different dash lengths.&lt;/P&gt;&lt;P&gt;In the attachments below we can see different line styles in two files which are expected to be the same. The behavior is tested on different tools which proves that these two styles should be equal.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7817e44c-319d-4f28-a303-c1eeb42349ad.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90922iC4A826C6A84192D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7817e44c-319d-4f28-a303-c1eeb42349ad.png" alt="7817e44c-319d-4f28-a303-c1eeb42349ad.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Linestyle 1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90921iDFEE55E29F8CE0C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Linestyle 1.PNG" alt="Linestyle 1.PNG" /&gt;&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 11:12:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1367759#M12440</guid>
      <dc:creator>IvonaJovanovic</dc:creator>
      <dc:date>2024-01-09T11:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1367776#M12441</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you provide any more details on the input data process? (line styles from ArcGIS maps, layers, services, packages, etc will automatically be shown properly on the map)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 11:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1367776#M12441</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2024-01-09T11:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1367993#M12443</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My end goal is to show accurate line styles in an ArcGIS runtime for .NET based application. For comparison, I am using ArcMap and ArcGIS Pro.&amp;nbsp; The source of this data is two .dgn CAD files, both have the same line style when inspected in a CAD application like microstation ( dgn 3) but they render differently when viewed in ArcMap ( see image below) . Note that they render correctly in ArcGIS Pro so the are must be encoded with the line styles correctly or ArcGIS pro can compensate for whatever is missing.&lt;/P&gt;&lt;P&gt;In my application it is rendered as image B, I am using the ODA library, and looking at the line style data I can see that it is different for the same style.&amp;nbsp;&lt;BR /&gt;I can confirm that the measurement units are the same between the two .dgn files.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 18:19:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1367993#M12443</guid>
      <dc:creator>IvonaJovanovic</dc:creator>
      <dc:date>2024-01-09T18:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368193#M12445</link>
      <description>&lt;P&gt;ArcGIS pro supports reading CAD data and perhaps has the capability to read and render it correctly. I am not sure how you are reading and rendering the data in an ArcGIS Maps SDK app, but you could create symbols via &lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Symbology.MultilayerPolylineSymbol.html" target="_self"&gt;MultilayerSymbol&lt;/A&gt; APIs and adjust the dash lengths and gaps by applying&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Symbology.DashGeometricEffect.html" target="_self"&gt;GeometricEffects&lt;/A&gt; on the multilayer polyline symbol. &lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/blob/main/src/WPF/WPF.Viewer/Samples/Symbology/RenderMultilayerSymbols/RenderMultilayerSymbols.xaml.cs#L235-L307" target="_self"&gt;Here is a public sample&lt;/A&gt; demonstrating different line style created via MultilayerPolyline symbol. Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 01:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368193#M12445</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2024-01-10T01:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368274#M12447</link>
      <description>&lt;P&gt;I am using&amp;nbsp;MultilayerPolylineSymbol and&amp;nbsp;DashTemplate to create dash lines. My question is how to populate DashTemplate with proper values. Currently, I am populating DashTemplate with raw dash length data I am getting for each dash. That is working for some CAD files, in some CAD files dash length doesn't match the line style. So my question is am I missing some configuration or is there something more I should pay attention to when populating&amp;nbsp; DashTemplate?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 10:56:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368274#M12447</guid>
      <dc:creator>IvonaJovanovic</dc:creator>
      <dc:date>2024-01-10T10:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368411#M12448</link>
      <description>&lt;P&gt;Examples are attached below. In the first image A, we have&amp;nbsp;&lt;SPAN&gt;an ArcGIS Maps SDK app example with DGN 3 line style not looking as it should be, and in image B we have the same example just opened in ArcGIS Pro (this is what I am trying to achieve)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the picture B we have a line styles (DGN 3 is labeled)&amp;nbsp; opened in&amp;nbsp;ArcGIS Maps SDK app and we see that DGN 3 style looks valid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the examples folder I have attached .dgn files.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 16:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368411#M12448</guid>
      <dc:creator>IvonaJovanovic</dc:creator>
      <dc:date>2024-01-10T16:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368752#M12450</link>
      <description>&lt;P&gt;When you open the data in Pro, what values do you see in DashEffects for the symbology that you think is correctly rendered?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 03:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368752#M12450</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2024-01-11T03:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368798#M12451</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;lt;DashTemplate xsi:type="typens:ArrayOfDouble"&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;&lt;SPAN&gt;&amp;lt;Double&amp;gt;&lt;/SPAN&gt;10&lt;SPAN&gt;&amp;lt;/Double&amp;gt;&lt;/SPAN&gt;&lt;BR /&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;&lt;SPAN&gt;&amp;lt;Double&amp;gt;&lt;/SPAN&gt;6&lt;SPAN&gt;&amp;lt;/Double&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;lt;/DashTemplate&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 10:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1368798#M12451</guid>
      <dc:creator>IvonaJovanovic</dc:creator>
      <dc:date>2024-01-11T10:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1371348#M12455</link>
      <description>&lt;P&gt;I don't have a good solution for you. But I know ArcGIS Pro treats the values in points and SDK expects DIPS. So if I take values you mentioned above convert points to DIPs, I get something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PreetiMaske_0-1705531552742.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91911iF71356B713CB43F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PreetiMaske_0-1705531552742.png" alt="PreetiMaske_0-1705531552742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;dashEffect.DashTemplate.Add(10*1.33);&lt;BR /&gt;dashEffect.DashTemplate.Add(6*1.33);&lt;BR /&gt;strokeLayer.GeometricEffects.Add(dashEffect);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;If you are reading from data sources that are not yet supported in ArcGIS Maps SDK you will have to add some extra logic in your app to adjust the symbology to match the original data symbology. Note, in some cases it might not be possible at all but for something like dashes you can try tweaking the dash template. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 22:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1371348#M12455</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2024-01-17T22:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1373455#M12477</link>
      <description>&lt;P&gt;I am reading values from .dgn file which is supported by&amp;nbsp;&lt;SPAN&gt;ArcGIS Maps SDK. I am inspecting CIM values in cim viewer plugin for ArcGIS Pro, and there in&amp;nbsp;DashTemplate I see values 10 and 6. When I inspect raw values from code I see 0.1471 and&amp;nbsp;0.0735. The raw values I am seeing are in meters. I was wondering what could be the factor that is influencing 0.1471 to become 10 and 0.0753 to become 6?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 15:26:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1373455#M12477</guid>
      <dc:creator>IvonaJovanovic</dc:creator>
      <dc:date>2024-01-23T15:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1373753#M12480</link>
      <description>&lt;P&gt;I am not following what you mean by :&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN&gt;When I inspect raw values from code I see 0.1471 and&amp;nbsp;0.0735. The raw values I am seeing are in meters&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are you saying when you inspect the access the symbol from layer renderer , get the symbollayer and fetch the GeometericEffect and the dash template values you are seeing these values?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 02:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1373753#M12480</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2024-01-24T02:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1373831#M12481</link>
      <description>&lt;P&gt;No, by raw values I mean raw dash length from the .dgn file before rendering. I am using the ODA library to read the .dgn file. The function I am using to inspect raw dash length is OdDbEntity.dashLengthAt(index).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 11:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1373831#M12481</guid>
      <dc:creator>IvonaJovanovic</dc:creator>
      <dc:date>2024-01-24T11:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Working with line styles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1389640#M12548</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think the issue you are encountering is the difference between a custom lifestyle vs a build-in lifestyle for Microstation. At this point in ArcGIS we do not support custom lifestyles for Microstation DGN files. This is the reason you see if one way in ODA viewer vs ArcGIS. We will look at adding an issue around this to our backlog and see if we can help with this.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 19:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/working-with-line-styles/m-p/1389640#M12548</guid>
      <dc:creator>JeffreyReinhart</dc:creator>
      <dc:date>2024-03-01T19:13:22Z</dc:date>
    </item>
  </channel>
</rss>

