<?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 The ConstructExtended of IConstructCurve does not work??how to solve?? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-constructextended-of-iconstructcurve-does-not/m-p/670060#M17956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,I want ot create a extension line of a line to extended to the desstination line, so I used the&amp;nbsp;&amp;nbsp; ConstructExtended of&amp;nbsp; IConstructCurve , but it does not work, the follow is my code, and I use the arcobject 10.0 and vs 2010 to code it?How to solve this problem, because in VS 2005 and AE 9.2 , it tested correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt; IPoint pPt = new PointClass();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPolyline slopeLine = new PolylineClass();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slopeLine.FromPoint = startPt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slopeLine.ToPoint = CreatePointByAngleDistance(startPt, radAngle,&amp;nbsp; 50);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slopeLine.SpatialReference = pSR;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IConstructCurve2 pConCurve = new PolylineClass();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool isExtensionPerfomed = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ICurve pCurve1 = slopeLine as ICurve;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICurve pCurve2 = desLine as ICurve;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pConCurve.ConstructExtended(pCurve1,pCurve2, (int)esriCurveExtension.esriDefaultCurveExtension,ref isExtensionPerfomed);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pPt = slopeLine.ToPoint; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2012 12:41:51 GMT</pubDate>
    <dc:creator>wxd</dc:creator>
    <dc:date>2012-05-09T12:41:51Z</dc:date>
    <item>
      <title>The ConstructExtended of IConstructCurve does not work??how to solve??</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-constructextended-of-iconstructcurve-does-not/m-p/670060#M17956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,I want ot create a extension line of a line to extended to the desstination line, so I used the&amp;nbsp;&amp;nbsp; ConstructExtended of&amp;nbsp; IConstructCurve , but it does not work, the follow is my code, and I use the arcobject 10.0 and vs 2010 to code it?How to solve this problem, because in VS 2005 and AE 9.2 , it tested correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt; IPoint pPt = new PointClass();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPolyline slopeLine = new PolylineClass();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slopeLine.FromPoint = startPt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slopeLine.ToPoint = CreatePointByAngleDistance(startPt, radAngle,&amp;nbsp; 50);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slopeLine.SpatialReference = pSR;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IConstructCurve2 pConCurve = new PolylineClass();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool isExtensionPerfomed = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ICurve pCurve1 = slopeLine as ICurve;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICurve pCurve2 = desLine as ICurve;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pConCurve.ConstructExtended(pCurve1,pCurve2, (int)esriCurveExtension.esriDefaultCurveExtension,ref isExtensionPerfomed);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pPt = slopeLine.ToPoint; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/the-constructextended-of-iconstructcurve-does-not/m-p/670060#M17956</guid>
      <dc:creator>wxd</dc:creator>
      <dc:date>2012-05-09T12:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: The ConstructExtended of IConstructCurve does not work�?how to solve�?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-constructextended-of-iconstructcurve-does-not/m-p/670061#M17957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at your code extract it appears OK, but you should confirm that the polyline &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;slopeLine&lt;/STRONG&gt;&lt;SPAN&gt; is valid, try putting in a message box to return the length of &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;slopeLine&lt;/STRONG&gt;&lt;SPAN&gt;. If this was you expected then something else is going wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 12:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/the-constructextended-of-iconstructcurve-does-not/m-p/670061#M17957</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-05-15T12:45:05Z</dc:date>
    </item>
  </channel>
</rss>

