<?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: IConstructCircularArc.ConstructTangentChordArc() equivallent in Pro? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1345869#M10651</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Take a look at ArcGIS Pro SDK API reference &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic75747.html" target="_self"&gt;EllipticArcBuilderEx method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Nov 2023 08:37:40 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2023-11-04T08:37:40Z</dc:date>
    <item>
      <title>IConstructCircularArc.ConstructTangentChordArc() equivallent in Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1345664#M10647</link>
      <description>&lt;P&gt;Hello Esri Team &amp;amp; Community,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need help creating a tangent curve. I only have two length (arc length and chord length) and a tangent bearing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help with finding an equivalent API in ArcGIS Pro. In ArcObject, we have:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;/// &amp;lt;summary&amp;gt;Constructs an arc with a common tangent to the input segment, a given chord length and an arc length.&amp;lt;/summary&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;[&lt;SPAN&gt;MethodImpl&lt;/SPAN&gt;(&lt;SPAN&gt;MethodImplOptions&lt;/SPAN&gt;.InternalCall, MethodCodeType = &lt;SPAN&gt;MethodCodeType&lt;/SPAN&gt;.Runtime)]&lt;BR /&gt;&lt;SPAN&gt;void &lt;/SPAN&gt;&lt;SPAN&gt;ConstructTangentChordArc&lt;/SPAN&gt;(&lt;BR /&gt;  [&lt;SPAN&gt;MarshalAs&lt;/SPAN&gt;(&lt;SPAN&gt;UnmanagedType&lt;/SPAN&gt;.Interface)] &lt;SPAN&gt;ISegment &lt;/SPAN&gt;&lt;SPAN&gt;Segment&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;bool &lt;/SPAN&gt;&lt;SPAN&gt;atStart&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;bool &lt;/SPAN&gt;&lt;SPAN&gt;isCCW&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;double &lt;/SPAN&gt;&lt;SPAN&gt;chordDistance&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;double &lt;/SPAN&gt;&lt;SPAN&gt;arcDistance&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Would you guys happen to know?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Trushar&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 17:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1345664#M10647</guid>
      <dc:creator>trushar</dc:creator>
      <dc:date>2023-11-03T17:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: IConstructCircularArc.ConstructTangentChordArc() equivallent in Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1345869#M10651</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Take a look at ArcGIS Pro SDK API reference &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic75747.html" target="_self"&gt;EllipticArcBuilderEx method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 08:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1345869#M10651</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-11-04T08:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: IConstructCircularArc.ConstructTangentChordArc() equivallent in Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1346103#M10653</link>
      <description>&lt;P&gt;Thank you but I checked all the overloads there with no success.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1346103#M10653</guid>
      <dc:creator>trushar</dc:creator>
      <dc:date>2023-11-06T15:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: IConstructCircularArc.ConstructTangentChordArc() equivallent in Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1346118#M10654</link>
      <description>&lt;P&gt;There are 2 differences in parameters in my suggested method:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;isCCW type is bool and orientation type - ArcOrientation. isCCW = true equals ArcOrientation.ArcCounterClockwise, isCCW=false equals ArcOrientation.ArcClockwise.&lt;/P&gt;&lt;P&gt;2. ArcGIS Pro has additional parameter&amp;nbsp;of type SpatialReference, but it is optional. You can pass null.&lt;/P&gt;&lt;P&gt;Could you share your code or export segment to csv to check?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:45:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1346118#M10654</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-11-06T15:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: IConstructCircularArc.ConstructTangentChordArc() equivallent in Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1347286#M10665</link>
      <description>&lt;P&gt;Hello Gintauta,&lt;BR /&gt;&lt;BR /&gt;The link you referred has method that takes&amp;nbsp;&lt;STRONG&gt;radius&lt;/STRONG&gt; and &lt;STRONG&gt;arc&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;public&lt;/SPAN&gt; EllipticArcBuilderEx( 
   &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic8749.html" target="_blank" rel="noopener"&gt;Segment&lt;/A&gt; &lt;I&gt;tangentSegment&lt;/I&gt;,
   &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic75747.html#" target="_blank" rel="noopener"&gt;bool&lt;/A&gt; &lt;I&gt;atStart&lt;/I&gt;,
   &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic75891.html" target="_blank" rel="noopener"&gt;ArcOrientation&lt;/A&gt; &lt;I&gt;orientation&lt;/I&gt;,
   &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic75747.html#" target="_blank" rel="noopener"&gt;double&lt;/A&gt; &lt;I&gt;radius&lt;/I&gt;,
   &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic75747.html#" target="_blank" rel="noopener"&gt;double&lt;/A&gt; &lt;I&gt;arcLength&lt;/I&gt;,
   &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic8770.html" target="_blank" rel="noopener"&gt;SpatialReference&lt;/A&gt; &lt;I&gt;spatialReference&lt;/I&gt;
)&lt;/PRE&gt;&lt;P&gt;My input parameters are &lt;STRONG&gt;chord&lt;/STRONG&gt; and &lt;STRONG&gt;arc&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Here is my solution to this problem but it give invalid results:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;private static &lt;/SPAN&gt;&lt;SPAN&gt;EllipticArcSegment &lt;/SPAN&gt;&lt;SPAN&gt;CircularArcFromArcAndChordWithTangentBearing&lt;/SPAN&gt;(&lt;BR /&gt;    [&lt;SPAN&gt;NotNull&lt;/SPAN&gt;] &lt;SPAN&gt;MetesAndBoundsEllipticCurveDrawDesc&lt;/SPAN&gt;.&lt;SPAN&gt;IStandardizedDistance &lt;/SPAN&gt;&lt;SPAN&gt;arcLength&lt;/SPAN&gt;,&lt;BR /&gt;    [&lt;SPAN&gt;NotNull&lt;/SPAN&gt;] &lt;SPAN&gt;MetesAndBoundsEllipticCurveDrawDesc&lt;/SPAN&gt;.&lt;SPAN&gt;IStandardizedDistance &lt;/SPAN&gt;&lt;SPAN&gt;chordLength&lt;/SPAN&gt;,&lt;BR /&gt;    [&lt;SPAN&gt;NotNull&lt;/SPAN&gt;] &lt;SPAN&gt;Segment &lt;/SPAN&gt;&lt;SPAN&gt;previousSegment&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;ArcOrientation &lt;/SPAN&gt;&lt;SPAN&gt;orientation&lt;/SPAN&gt;)&lt;BR /&gt;{&lt;BR /&gt;    &lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;arcLengthInMeters &lt;/SPAN&gt;= (&lt;SPAN&gt;double&lt;/SPAN&gt;)&lt;SPAN&gt;arcLength&lt;/SPAN&gt;.Distance * &lt;SPAN&gt;LinearUnitExtensions&lt;/SPAN&gt;.&lt;SPAN&gt;GetRatio&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;Meter&lt;/SPAN&gt;&amp;gt;();&lt;BR /&gt;    &lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;chordLengthInMeters &lt;/SPAN&gt;= (&lt;SPAN&gt;double&lt;/SPAN&gt;)&lt;SPAN&gt;chordLength&lt;/SPAN&gt;.Distance * &lt;SPAN&gt;LinearUnitExtensions&lt;/SPAN&gt;.&lt;SPAN&gt;GetRatio&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;Meter&lt;/SPAN&gt;&amp;gt;();&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;// until Esri provide similar API access to get center angle from&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // IConstructCircularArc.ConstructBearingChordArc().CentralAngle&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // which we can feed in MetesAndBoundsPathGenerator.ChordDirection()&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // to get chord bearing&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // calculate the radius of a circle if you know the length of a chord (c) and&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // the length of the corresponding arc (s) that the chord subtends.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // To calculate the radius, you can use the following formula:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // Radius (r) = (c^2) / (8s) + (s/2)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // Where:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // Radius (r) is the radius of the circle.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    //     Chord Length (c) is the length of the chord.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    //     Arc Length (s) is the length of the arc that corresponds to the chord&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;radiusInMeters &lt;/SPAN&gt;= (&lt;SPAN&gt;chordLengthInMeters &lt;/SPAN&gt;* &lt;SPAN&gt;chordLengthInMeters &lt;/SPAN&gt;/ (&lt;SPAN&gt;8 &lt;/SPAN&gt;* &lt;SPAN&gt;arcLengthInMeters&lt;/SPAN&gt;)) + (&lt;SPAN&gt;arcLengthInMeters &lt;/SPAN&gt;/ &lt;SPAN&gt;2d&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;// 2023-11-06 4:44pm trusharm, this is an additional step to the formula&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // above to get approximate radius (pure guess)&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;radiusInMeters &lt;/SPAN&gt;/= &lt;SPAN&gt;2d&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;using var &lt;/SPAN&gt;&lt;SPAN&gt;e &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;EllipticArcBuilder&lt;/SPAN&gt;(&lt;BR /&gt;        &lt;SPAN&gt;tangentSegment&lt;/SPAN&gt;: &lt;SPAN&gt;previousSegment&lt;/SPAN&gt;,&lt;BR /&gt;        &lt;SPAN&gt;atStart&lt;/SPAN&gt;: &lt;SPAN&gt;false&lt;/SPAN&gt;,&lt;BR /&gt;        &lt;SPAN&gt;orientation&lt;/SPAN&gt;,&lt;BR /&gt;        &lt;SPAN&gt;radiusInMeters&lt;/SPAN&gt;,&lt;BR /&gt;        &lt;SPAN&gt;arcLengthInMeters&lt;/SPAN&gt;);&lt;BR /&gt;    &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;e&lt;/SPAN&gt;.&lt;SPAN&gt;ToSegment&lt;/SPAN&gt;();&lt;BR /&gt;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Trushar&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/iconstructcirculararc-constructtangentchordarc/m-p/1347286#M10665</guid>
      <dc:creator>trushar</dc:creator>
      <dc:date>2023-11-08T17:40:13Z</dc:date>
    </item>
  </channel>
</rss>

