<?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   Offset Polyline(original as drawn)  problem in Arcgis pro sdk in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827390#M3123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a offset polyline problem &lt;STRONG&gt;I can not offset polyline as you draw (original as drawn&lt;/STRONG&gt;&lt;SPAN style="background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px;"&gt;&lt;STRONG&gt;) . &lt;/STRONG&gt;&lt;/SPAN&gt;How can we solve this important problem ? Or are there any alternative solution? We are using all Offset Types (Mitter ,Bevel , Round , Square) but polyline shape changes,&amp;nbsp; we don not want the line to be different shape&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp;.We can offset same polyline in&amp;nbsp; ArcObjects but we can not wit ArcgisPro SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is in code and pictures in&amp;nbsp;ArcgisPro SDK below :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mitter &lt;/STRONG&gt;left and&amp;nbsp; right offset&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;in the middle green polyline is original polyline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (result.RightSide)&lt;BR /&gt; offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), distance, OffsetType.Miter, 5) as Polyline;&lt;BR /&gt; else&lt;BR /&gt; offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), -distance, OffsetType.Miter, 5) as Polyline;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="390658" alt="Miter Ofset" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/390658_MitterOffset.JPG" style="width: 620px; height: 398px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Round&amp;nbsp;&lt;/STRONG&gt;left and right offset&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;in the middle green polyline is original polyline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (result.RightSide)&lt;BR /&gt; offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), distance, OffsetType.Round, 0) as Polyline;&lt;BR /&gt; else&lt;BR /&gt; offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), -distance, OffsetType.Round, 0) as Polyline;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="390671" alt="Round offset" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/390671_RoundOffset.JPG" style="width: 620px; height: 431px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is below what we want&amp;nbsp;correct left and right offset code and pictures in&amp;nbsp;ArcObjects :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;Left and&amp;nbsp; right offset&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;in the middle green polyline is original polyline.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IConstructCurve constructCurve = new PolylineClass();&lt;/P&gt;&lt;P&gt;constructCurve.ConstructOffset(polycurve, Offset, ref esriConstructOffsetEnum, ref bevelRatio);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="390672" alt="ArcObjects Offset" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/390672_Contruct.JPG" style="width: 843px; height: 416px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Helping&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2017 07:34:47 GMT</pubDate>
    <dc:creator>tanerkoka</dc:creator>
    <dc:date>2017-12-13T07:34:47Z</dc:date>
    <item>
      <title>Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827390#M3123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a offset polyline problem &lt;STRONG&gt;I can not offset polyline as you draw (original as drawn&lt;/STRONG&gt;&lt;SPAN style="background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px;"&gt;&lt;STRONG&gt;) . &lt;/STRONG&gt;&lt;/SPAN&gt;How can we solve this important problem ? Or are there any alternative solution? We are using all Offset Types (Mitter ,Bevel , Round , Square) but polyline shape changes,&amp;nbsp; we don not want the line to be different shape&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp;.We can offset same polyline in&amp;nbsp; ArcObjects but we can not wit ArcgisPro SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is in code and pictures in&amp;nbsp;ArcgisPro SDK below :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mitter &lt;/STRONG&gt;left and&amp;nbsp; right offset&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;in the middle green polyline is original polyline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (result.RightSide)&lt;BR /&gt; offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), distance, OffsetType.Miter, 5) as Polyline;&lt;BR /&gt; else&lt;BR /&gt; offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), -distance, OffsetType.Miter, 5) as Polyline;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="390658" alt="Miter Ofset" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/390658_MitterOffset.JPG" style="width: 620px; height: 398px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Round&amp;nbsp;&lt;/STRONG&gt;left and right offset&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;in the middle green polyline is original polyline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (result.RightSide)&lt;BR /&gt; offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), distance, OffsetType.Round, 0) as Polyline;&lt;BR /&gt; else&lt;BR /&gt; offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), -distance, OffsetType.Round, 0) as Polyline;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="390671" alt="Round offset" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/390671_RoundOffset.JPG" style="width: 620px; height: 431px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is below what we want&amp;nbsp;correct left and right offset code and pictures in&amp;nbsp;ArcObjects :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;Left and&amp;nbsp; right offset&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;in the middle green polyline is original polyline.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IConstructCurve constructCurve = new PolylineClass();&lt;/P&gt;&lt;P&gt;constructCurve.ConstructOffset(polycurve, Offset, ref esriConstructOffsetEnum, ref bevelRatio);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="390672" alt="ArcObjects Offset" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/390672_Contruct.JPG" style="width: 843px; height: 416px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Helping&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:34:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827390#M3123</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2017-12-13T07:34:47Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827391#M3124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are there any ide about this question ? Is it bug or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827391#M3124</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2017-12-20T13:39:36Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827392#M3125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Taner,&lt;/P&gt;&lt;P&gt;This is the same issue as&amp;nbsp;&lt;A href="https://community.esri.com/message/732957-draw-arc-line-offset-problem-in-arcgis-pro-sdk?et=watches.email.thread"&gt;https://community.esri.com/message/732957-draw-arc-line-offset-problem-in-arcgis-pro-sdk?et=watches.email.thread&lt;/A&gt;&amp;nbsp;. It will be fixed in the next release. I am looking into a workaround in the meantime and will keep you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 18:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827392#M3125</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2017-12-20T18:16:11Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827393#M3126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Annette,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any result about this problem ? &lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;It is very important for us because it is important for us to draw the right and left offensive roads in our vehicles.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827393#M3126</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2018-01-31T14:02:11Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827394#M3127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Taner, I am still working on this. I should have some more information for you in a couple of days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827394#M3127</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2018-02-02T18:02:43Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827395#M3128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Taner,&lt;/P&gt;&lt;P&gt;Thank you for your patience. The fix for this issue is being considered for ArcGIS Pro 2.1.2 with a targeted release date of March 13. I will keep you posted.&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 22:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827395#M3128</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2018-02-05T22:03:18Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827396#M3129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Annette,&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 06:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827396#M3129</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2018-02-06T06:23:10Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827397#M3130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Taner,&lt;/P&gt;&lt;P&gt;I just wanted to let you know that this issue was addressed in ArcGIS Pro 2.1.2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 23:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/827397#M3130</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2018-05-14T23:34:43Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1264023#M9504</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/47911"&gt;@AnnetteLocke&lt;/a&gt;&amp;nbsp;- would you know if this functionality is broken in ArcGIS Pro 3.1?&lt;/P&gt;&lt;P&gt;I have been struggling with this issue, specifically with line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. For bevel ratio where value is &amp;lt; 1 or 0:&lt;/P&gt;&lt;P&gt;Square, Bevel &amp;amp; Miter produces the following output&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trushar_0-1677858336550.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64292i93EA94327087265E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trushar_0-1677858336550.png" alt="trushar_0-1677858336550.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Round is good&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trushar_1-1677858571400.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64293i96A8F46921F38190/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trushar_1-1677858571400.png" alt="trushar_1-1677858571400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. For bevel ratio = 1:&lt;/P&gt;&lt;P&gt;Square, Bevel &amp;amp; Miter produces the following output&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trushar_2-1677858710568.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64294i895F909B51D5486A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trushar_2-1677858710568.png" alt="trushar_2-1677858710568.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Round is same as above.&lt;/P&gt;&lt;P&gt;Any thoughts on what is going on?&lt;/P&gt;&lt;P&gt;Thank you again,&lt;BR /&gt;Trushar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edited:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;var spatialReference = SpatialReferenceBuilder.CreateSpatialReference(wkid: 4326);&lt;BR /&gt;&lt;BR /&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;linePts &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;MapPoint&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;    &lt;SPAN&gt;MapPointBuilderEx&lt;/SPAN&gt;.&lt;SPAN&gt;CreateMapPoint&lt;/SPAN&gt;(&lt;SPAN&gt;00000.10&lt;/SPAN&gt;, &lt;SPAN&gt;00000.10&lt;/SPAN&gt;, &lt;SPAN&gt;spatialReference&lt;/SPAN&gt;),&lt;BR /&gt;    &lt;SPAN&gt;MapPointBuilderEx&lt;/SPAN&gt;.&lt;SPAN&gt;CreateMapPoint&lt;/SPAN&gt;(&lt;SPAN&gt;00000.20&lt;/SPAN&gt;, &lt;SPAN&gt;00000.50&lt;/SPAN&gt;, &lt;SPAN&gt;spatialReference&lt;/SPAN&gt;),&lt;BR /&gt;    &lt;SPAN&gt;MapPointBuilderEx&lt;/SPAN&gt;.&lt;SPAN&gt;CreateMapPoint&lt;/SPAN&gt;(&lt;SPAN&gt;00000.30&lt;/SPAN&gt;, &lt;SPAN&gt;00000.10&lt;/SPAN&gt;, &lt;SPAN&gt;spatialReference&lt;/SPAN&gt;),&lt;BR /&gt;    &lt;SPAN&gt;MapPointBuilderEx&lt;/SPAN&gt;.&lt;SPAN&gt;CreateMapPoint&lt;/SPAN&gt;(&lt;SPAN&gt;00000.40&lt;/SPAN&gt;, &lt;SPAN&gt;00000.10&lt;/SPAN&gt;, &lt;SPAN&gt;spatialReference&lt;/SPAN&gt;),&lt;BR /&gt;    &lt;SPAN&gt;MapPointBuilderEx&lt;/SPAN&gt;.&lt;SPAN&gt;CreateMapPoint&lt;/SPAN&gt;(&lt;SPAN&gt;00000.50&lt;/SPAN&gt;, &lt;SPAN&gt;00000.80&lt;/SPAN&gt;, &lt;SPAN&gt;spatialReference&lt;/SPAN&gt;)&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;polyline &lt;/SPAN&gt;= &lt;SPAN&gt;PolylineBuilder&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePolyline&lt;/SPAN&gt;(&lt;SPAN&gt;linePts&lt;/SPAN&gt;, &lt;SPAN&gt;spatialReference&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;g1 &lt;/SPAN&gt;= &lt;SPAN&gt;GeometryEngine&lt;/SPAN&gt;.Instance.&lt;SPAN&gt;Offset&lt;/SPAN&gt;(&lt;SPAN&gt;polyline&lt;/SPAN&gt;, &lt;SPAN&gt;0.10&lt;/SPAN&gt;, &lt;SPAN&gt;OffsetType&lt;/SPAN&gt;.Square, &lt;SPAN&gt;0&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;g2 &lt;/SPAN&gt;= &lt;SPAN&gt;GeometryEngine&lt;/SPAN&gt;.Instance.&lt;SPAN&gt;Offset&lt;/SPAN&gt;(&lt;SPAN&gt;polyline&lt;/SPAN&gt;, &lt;SPAN&gt;0.10&lt;/SPAN&gt;, &lt;SPAN&gt;OffsetType&lt;/SPAN&gt;.Bevel, &lt;SPAN&gt;0.25&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;g3 &lt;/SPAN&gt;= &lt;SPAN&gt;GeometryEngine&lt;/SPAN&gt;.Instance.&lt;SPAN&gt;Offset&lt;/SPAN&gt;(&lt;SPAN&gt;polyline&lt;/SPAN&gt;, &lt;SPAN&gt;0.10&lt;/SPAN&gt;, &lt;SPAN&gt;OffsetType&lt;/SPAN&gt;.Miter, &lt;SPAN&gt;0.1&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;g4 &lt;/SPAN&gt;= &lt;SPAN&gt;GeometryEngine&lt;/SPAN&gt;.Instance.&lt;SPAN&gt;Offset&lt;/SPAN&gt;(&lt;SPAN&gt;polyline&lt;/SPAN&gt;, &lt;SPAN&gt;0.10&lt;/SPAN&gt;, &lt;SPAN&gt;OffsetType&lt;/SPAN&gt;.Round, &lt;SPAN&gt;0&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer&lt;/SPAN&gt;.&lt;SPAN&gt;AddElement&lt;/SPAN&gt;(&lt;SPAN&gt;polyline&lt;/SPAN&gt;.&lt;SPAN&gt;GetGraphicLineMct&lt;/SPAN&gt;());&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer&lt;/SPAN&gt;.&lt;SPAN&gt;AddElement&lt;/SPAN&gt;(&lt;SPAN&gt;g1&lt;/SPAN&gt;.&lt;SPAN&gt;GetGraphicLineMct&lt;/SPAN&gt;(&lt;SPAN&gt;SymbolHelper&lt;/SPAN&gt;.LineSymbolGreen));&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer&lt;/SPAN&gt;.&lt;SPAN&gt;AddElement&lt;/SPAN&gt;(&lt;SPAN&gt;g2&lt;/SPAN&gt;.&lt;SPAN&gt;GetGraphicLineMct&lt;/SPAN&gt;(&lt;SPAN&gt;SymbolHelper&lt;/SPAN&gt;.LineSymbolPink));&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer&lt;/SPAN&gt;.&lt;SPAN&gt;AddElement&lt;/SPAN&gt;(&lt;SPAN&gt;g3&lt;/SPAN&gt;.&lt;SPAN&gt;GetGraphicLineMct&lt;/SPAN&gt;(&lt;SPAN&gt;SymbolHelper&lt;/SPAN&gt;.LineSymbolPurple));&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer&lt;/SPAN&gt;.&lt;SPAN&gt;AddElement&lt;/SPAN&gt;(&lt;SPAN&gt;g4&lt;/SPAN&gt;.&lt;SPAN&gt;GetGraphicLineMct&lt;/SPAN&gt;());&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1264023#M9504</guid>
      <dc:creator>trushar</dc:creator>
      <dc:date>2023-03-03T16:58:34Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1264621#M9510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am looking into this. I will respond shortly.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 17:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1264621#M9510</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2023-03-06T17:43:40Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1267657#M9532</link>
      <description>&lt;P&gt;Hello Annette, any word on the above?&lt;/P&gt;&lt;P&gt;While you are at it, I like to find out additional information on the following method "&lt;STRONG&gt;GeometryEngine.Instance.SideBuffer()&lt;/STRONG&gt;", if you have any updates please?&lt;/P&gt;&lt;P&gt;Noticed that the LineCapType throws not implemented. See line number &lt;EM&gt;~4820&lt;/EM&gt; in "&lt;STRONG&gt;ArcGIS.Core.Geometry.GeometryEngine&lt;/STRONG&gt;"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Decompiled code snip from your nuget package:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;public &lt;/SPAN&gt;ArcGIS.Core.Geometry.&lt;SPAN&gt;Geometry &lt;/SPAN&gt;&lt;SPAN&gt;SideBuffer&lt;/SPAN&gt;(&lt;BR /&gt;  &lt;SPAN&gt;Polyline &lt;/SPAN&gt;&lt;SPAN&gt;polyline&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;double &lt;/SPAN&gt;&lt;SPAN&gt;distance&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;LeftOrRightSide &lt;/SPAN&gt;&lt;SPAN&gt;side&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;LineCapType &lt;/SPAN&gt;&lt;SPAN&gt;capType&lt;/SPAN&gt;)&lt;BR /&gt;{&lt;BR /&gt;  &lt;SPAN&gt;GeometryEngine&lt;/SPAN&gt;.&lt;SPAN&gt;CheckForNullGeometry&lt;/SPAN&gt;((ArcGIS.Core.Geometry.&lt;SPAN&gt;Geometry&lt;/SPAN&gt;) &lt;SPAN&gt;polyline&lt;/SPAN&gt;);&lt;BR /&gt;  &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;double&lt;/SPAN&gt;.&lt;SPAN&gt;IsNaN&lt;/SPAN&gt;(&lt;SPAN&gt;distance&lt;/SPAN&gt;) || &lt;SPAN&gt;double&lt;/SPAN&gt;.&lt;SPAN&gt;IsInfinity&lt;/SPAN&gt;(&lt;SPAN&gt;distance&lt;/SPAN&gt;) || &lt;SPAN&gt;distance &lt;/SPAN&gt;&amp;lt; &lt;SPAN&gt;0.0&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;throw new &lt;/SPAN&gt;&lt;SPAN&gt;ArgumentException&lt;/SPAN&gt;(&lt;SPAN&gt;"distance must be greater than zero"&lt;/SPAN&gt;);&lt;BR /&gt;  &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;capType &lt;/SPAN&gt;== &lt;SPAN&gt;LineCapType&lt;/SPAN&gt;.Square)&lt;BR /&gt;    &lt;SPAN&gt;throw new &lt;/SPAN&gt;&lt;SPAN&gt;ArgumentException&lt;/SPAN&gt;(&lt;SPAN&gt;string&lt;/SPAN&gt;.&lt;SPAN&gt;Format&lt;/SPAN&gt;(&lt;SPAN&gt;GeometryResources&lt;/SPAN&gt;.NotImplemented, (&lt;SPAN&gt;object&lt;/SPAN&gt;) &lt;SPAN&gt;"LineCapType.Square"&lt;/SPAN&gt;));&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 16:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1267657#M9532</guid>
      <dc:creator>trushar</dc:creator>
      <dc:date>2023-03-14T16:46:21Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1267836#M9535</link>
      <description>&lt;P&gt;This is a bug that will be addressed in a future release. Unfortunately, I can't give you an exact date at this time. I am working on a workaround for you, but I want to test it a little bit more. It will be ready tomorrow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding SideBuffer, the corners of the buffer will always be round. The LineCapType refers only to the start and end of the line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 23:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1267836#M9535</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2023-03-14T23:30:00Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1268273#M9538</link>
      <description>&lt;P&gt;Can you use this workaround?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private Multipart GetOffsetUsingGraphicBuffer(Multipart multipart, double offsetDistance, LineJoinType joinType)
{
  Polygon graphicBuffer = GeometryEngine.Instance.GraphicBuffer(multipart, Math.Abs(offsetDistance), joinType, LineCapType.Square, 4, 0, 96) as Polygon;

  Polyline boundary = GeometryEngine.Instance.Boundary(graphicBuffer) as Polyline;

  ProximityResult startResult = GeometryEngine.Instance.NearestPoint(boundary, multipart.Points[0]);
  Coordinate2D coord = (Coordinate2D)(startResult.Point);
  Segment firstSegment = multipart.Parts[0][0];

  // Negative offset distance means the offset line will be on the left side
  bool isOnRightSide = PointIsOnRightSide(firstSegment.StartCoordinate, coord, firstSegment.EndCoordinate);
  if (offsetDistance &amp;gt; 0 &amp;amp;&amp;amp; !isOnRightSide)
    coord.Rotate(Math.PI, (Coordinate2D)(multipart.Points[0]));

  double distanceAlongCurve1, distanceFromCurve;
  LeftOrRightSide whichSide;
  MapPoint point = GeometryEngine.Instance.QueryPointAndDistance(boundary, SegmentExtensionType.NoExtension, coord.ToMapPoint(), AsRatioOrLength.AsRatio, out distanceAlongCurve1, out distanceFromCurve, out whichSide);

  ProximityResult endResult = GeometryEngine.Instance.NearestPoint(boundary, multipart.Points.Last());
  coord = (Coordinate2D)(endResult.Point);
  if (offsetDistance &amp;gt; 0 &amp;amp;&amp;amp; !isOnRightSide)
    coord.Rotate(Math.PI, (Coordinate2D)(multipart.Points.Last()));

  double distanceAlongCurve2;
  point = GeometryEngine.Instance.QueryPointAndDistance(boundary, SegmentExtensionType.NoExtension, coord.ToMapPoint(), AsRatioOrLength.AsRatio, out distanceAlongCurve2, out distanceFromCurve, out whichSide);

  double d1 = Math.Min(distanceAlongCurve1, distanceAlongCurve2);
  double d2 = Math.Max(distanceAlongCurve1, distanceAlongCurve2);

  Polyline subCurve = GeometryEngine.Instance.GetSubCurve(boundary, d1, d2, AsRatioOrLength.AsRatio) as Polyline;
  return subCurve;
}

private bool PointIsOnRightSide(Coordinate2D origin, Coordinate2D p1, Coordinate2D p2)
{
  // The result is positive if p1 lies on right side of origin--&amp;gt;p2;

  double part1 = (p1.X - origin.X) * (p2.Y - origin.Y),
         part2 = (p1.Y - origin.Y) * (p2.X - origin.X),
         result = part1 - part2;

  return result &amp;gt; 0;
}

// Here is a test
public void GEOffsetWorkaroundTest()
{
  SpatialReference spatialReference = SpatialReferences.WGS84;

  var coords = new List&amp;lt;Coordinate2D&amp;gt;
  {
      new Coordinate2D(0.1, 0.1),
      new Coordinate2D(0.2, 0.5),
      new Coordinate2D(0.3, 0.1),
      new Coordinate2D(0.4, 0.1),
      new Coordinate2D(0.5, 0.8)
  };

  Polyline polyline = PolylineBuilderEx.CreatePolyline(coords, spatialReference) as Polyline;

  Polyline outputOffsetPolyline = GetOffsetUsingGraphicBuffer(polyline, 0.1, LineJoinType.Miter) as Polyline;
  File.WriteAllText("C:\\temp\\outputOffsetPolyline_1_.txt", outputOffsetPolyline.ToJson());

  outputOffsetPolyline = GetOffsetUsingGraphicBuffer(polyline, -0.1, LineJoinType.Miter) as Polyline;
  File.WriteAllText("C:\\temp\\outputOffsetPolyline_2_.txt", outputOffsetPolyline.ToJson());

  outputOffsetPolyline = GetOffsetUsingGraphicBuffer(polyline, 0.1, LineJoinType.Bevel) as Polyline;
  File.WriteAllText("C:\\temp\\outputOffsetPolyline_3_.txt", outputOffsetPolyline.ToJson());

  outputOffsetPolyline = GetOffsetUsingGraphicBuffer(polyline, -0.1, LineJoinType.Bevel) as Polyline;
  File.WriteAllText("C:\\temp\\outputOffsetPolyline_4_.txt", outputOffsetPolyline.ToJson());

  outputOffsetPolyline = GetOffsetUsingGraphicBuffer(polyline, 0.1, LineJoinType.Round) as Polyline;
  File.WriteAllText("C:\\temp\\outputOffsetPolyline_5_.txt", outputOffsetPolyline.ToJson());
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Mar 2023 20:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1268273#M9538</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2023-03-15T20:53:57Z</dc:date>
    </item>
    <item>
      <title>Re:   Offset Polyline(original as drawn)  problem in Arcgis pro sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1367666#M10985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This will be fixed in the ArcGIS Pro 3.3.&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 23:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/offset-polyline-original-as-drawn-problem-in/m-p/1367666#M10985</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2024-01-08T23:47:07Z</dc:date>
    </item>
  </channel>
</rss>

