<?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: PolyLine and Point2D and Point3D in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8020644#M25850</link>
    <description>Morning,&lt;BR /&gt;&lt;BR /&gt;Good call out and i did try this. However, if I switch, I then loose out&lt;BR /&gt;on the functionality of this line of code:&lt;BR /&gt;&lt;BR /&gt;Angle2 = Point2.GetVectorTo(Point3).Angle&lt;BR /&gt;&lt;BR /&gt;Do you know an equivalent to this calculation for the 3D option?&lt;BR /&gt;&lt;BR /&gt;Please let me know your thoughts.&lt;BR /&gt;</description>
    <pubDate>Wed, 23 May 2018 12:26:22 GMT</pubDate>
    <dc:creator>conveyor1</dc:creator>
    <dc:date>2018-05-23T12:26:22Z</dc:date>
    <item>
      <title>PolyLine and Point2D and Point3D</title>
      <link>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8019487#M25848</link>
      <description>&lt;P&gt;Afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have written some code to select a polyline and then assign the various points in the polyline to new variables.&amp;nbsp; However, I am running into the issue where the data I am getting from the polyline is 2d and the items downstream require 3D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;Dim myPLine As Polyline&lt;/P&gt;&lt;P&gt;dim Num_Points as integer = myPLine.NumberOfVertices&lt;/P&gt;&lt;P&gt;Dim Point1 As New Geometry.Point2d&amp;nbsp; &amp;nbsp; &amp;nbsp;' Needs to be .Point3d to work with the .Line command&lt;/P&gt;&lt;P&gt;Point1 = myPLine.GetPoint2dAt(Count)&lt;/P&gt;&lt;P&gt;Dim Myline1 As New DatabaseServices.Line(Point1, Point2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, everything up to the "Dim Myline1" works with 2d, but the line command requires 3d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an solutions for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know when you can.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 22:32:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8019487#M25848</guid>
      <dc:creator>conveyor1</dc:creator>
      <dc:date>2018-05-22T22:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: PolyLine and Point2D and Point3D</title>
      <link>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8020085#M25849</link>
      <description>&lt;P&gt;You can use the GetPoint3dAt() method to get the WCS coordinate of a vertex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1179727"&gt;@conveyor1&lt;/a&gt;wrote:&lt;BR /&gt;&lt;P&gt;Afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have written some code to select a polyline and then assign the various points in the polyline to new variables.&amp;nbsp; However, I am running into the issue where the data I am getting from the polyline is 2d and the items downstream require 3D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;Dim myPLine As Polyline&lt;/P&gt;&lt;P&gt;dim Num_Points as integer = myPLine.NumberOfVertices&lt;/P&gt;&lt;P&gt;Dim Point1 As New Geometry.Point2d&amp;nbsp; &amp;nbsp; &amp;nbsp;' Needs to be .Point3d to work with the .Line command&lt;/P&gt;&lt;P&gt;Point1 = myPLine.GetPoint2dAt(Count)&lt;/P&gt;&lt;P&gt;Dim Myline1 As New DatabaseServices.Line(Point1, Point2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, everything up to the "Dim Myline1" works with 2d, but the line command requires 3d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an solutions for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know when you can.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 07:08:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8020085#M25849</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2018-05-23T07:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: PolyLine and Point2D and Point3D</title>
      <link>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8020644#M25850</link>
      <description>Morning,&lt;BR /&gt;&lt;BR /&gt;Good call out and i did try this. However, if I switch, I then loose out&lt;BR /&gt;on the functionality of this line of code:&lt;BR /&gt;&lt;BR /&gt;Angle2 = Point2.GetVectorTo(Point3).Angle&lt;BR /&gt;&lt;BR /&gt;Do you know an equivalent to this calculation for the 3D option?&lt;BR /&gt;&lt;BR /&gt;Please let me know your thoughts.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 May 2018 12:26:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8020644#M25850</guid>
      <dc:creator>conveyor1</dc:creator>
      <dc:date>2018-05-23T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: PolyLine and Point2D and Point3D</title>
      <link>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8021813#M25851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have a look at the &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREFNET-__OVERLOADED_GetAngleTo_Autodesk_AutoCAD_Geometry_Vector3d" target="_blank"&gt;Vector3d.GetAngleTo() &lt;/A&gt;method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming all the points lies on a plane parallel to the WCS XY plane, the equivalent for &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREFNET-Autodesk_AutoCAD_Geometry_Vector2d_Angle" target="_blank"&gt;Vector2d.Angle&lt;/A&gt; should be:&lt;/P&gt;
&lt;PRE&gt;Angle2 = Vector3d.XAxis.GetAngleTo(Point2.GetVectorTo(Point3), Vector3d.ZAxis);&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 May 2018 18:42:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8021813#M25851</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-05-23T18:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: PolyLine and Point2D and Point3D</title>
      <link>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8022769#M25852</link>
      <description>&lt;P&gt;Go back and read your original question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You didn't ask how to calculate angles between 3D coordinates, you asked how to get polyline vertices as 3D coordinates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1179727"&gt;@conveyor1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Morning,&lt;BR /&gt;&lt;BR /&gt;Good call out and i did try this. However, if I switch, I then loose out&lt;BR /&gt;on the functionality of this line of code:&lt;BR /&gt;&lt;BR /&gt;Angle2 = Point2.GetVectorTo(Point3).Angle&lt;BR /&gt;&lt;BR /&gt;Do you know an equivalent to this calculation for the 3D option?&lt;BR /&gt;&lt;BR /&gt;Please let me know your thoughts.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 05:28:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/8022769#M25852</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2018-05-24T05:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: PolyLine and Point2D and Point3D</title>
      <link>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/9521769#M25853</link>
      <description>&lt;P&gt;Note that if you use GetPoint2dAt, you get a point in ECS rather than WCS as you get from GetPoint3dAt&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 10:08:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/polyline-and-point2d-and-point3d/m-p/9521769#M25853</guid>
      <dc:creator>Izhar_Azati</dc:creator>
      <dc:date>2020-05-17T10:08:29Z</dc:date>
    </item>
  </channel>
</rss>

