<?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: pick polyline and get nearest vertex coordinate in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2704395#M64975</link>
    <description>&lt;P&gt;ha, you are genius. there is no way i can figure this out on my own.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you so much!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2010 16:47:09 GMT</pubDate>
    <dc:creator>wang890</dc:creator>
    <dc:date>2010-06-29T16:47:09Z</dc:date>
    <item>
      <title>pick polyline and get nearest vertex coordinate</title>
      <link>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703743#M64970</link>
      <description>&lt;P&gt;i am making a command in vb.net which user pick a polyline and the program get it's layer name and place a text that lines up with the polyline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i can pick the polyline and get layer and put text no problem. but how do i go from&amp;nbsp; &lt;FONT size="2"&gt;GetSelection() to getting a proximity coordinate and get the vertex and previous (or next) vertex and get an angle and apply to the text?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;see attached picture for what i am trying to do.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 22:37:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703743#M64970</guid>
      <dc:creator>wang890</dc:creator>
      <dc:date>2010-06-28T22:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: pick polyline and get nearest vertex coordinate</title>
      <link>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703779#M64971</link>
      <description>&lt;P&gt;Set the PromptSelectionOptions.PrepareOptionalDetails argument to true, and&lt;/P&gt;&lt;P&gt;then if the user picks the polyline, the object in the selection set will be a&lt;/P&gt;&lt;P&gt;PickPointSelectedObject, and you can examine it to find out where it was&lt;/P&gt;&lt;P&gt;picked. You can use Curve.GetParameterAtPoint() to get the index of the&lt;/P&gt;&lt;P&gt;vertex/segment that was picked based on the pick point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 23:39:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703779#M64971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-28T23:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: pick polyline and get nearest vertex coordinate</title>
      <link>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703799#M64972</link>
      <description>&lt;P&gt;hi Tony&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i found out how to get the point user selected, but can you tell me how the curve.GetParameterAtPoint works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 00:46:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703799#M64972</guid>
      <dc:creator>wang890</dc:creator>
      <dc:date>2010-06-29T00:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: pick polyline and get nearest vertex coordinate</title>
      <link>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703807#M64973</link>
      <description>&lt;P&gt;i got the point like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim poly As Polyline = TryCast(tr.GetObject(prResult.Value(0).ObjectId, OpenMode.ForRead), Polyline)&lt;/P&gt;&lt;P&gt;Dim ppso As PickPointSelectedObject = DirectCast(prResult.Value(0), PickPointSelectedObject)&lt;/P&gt;&lt;P&gt;Dim p3d As Point3d = poly.GetClosestPointTo(ppso.PickPoint.PointOnLine, False)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it's not the point i want. i want the closest vertex. so i can get it's index and get the next one and calculated an angle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;right now it's giving the picked point on the polyline. it's what some people want not for me this time.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 01:41:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703807#M64973</guid>
      <dc:creator>wang890</dc:creator>
      <dc:date>2010-06-29T01:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: pick polyline and get nearest vertex coordinate</title>
      <link>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703921#M64974</link>
      <description>&lt;P&gt;The GraphicsSystemMarker property of the PickPointSelectedObject&lt;/P&gt;&lt;P&gt;gives you the index of the selected polyline segment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 08:49:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2703921#M64974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-29T08:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: pick polyline and get nearest vertex coordinate</title>
      <link>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2704395#M64975</link>
      <description>&lt;P&gt;ha, you are genius. there is no way i can figure this out on my own.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 16:47:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/pick-polyline-and-get-nearest-vertex-coordinate/m-p/2704395#M64975</guid>
      <dc:creator>wang890</dc:creator>
      <dc:date>2010-06-29T16:47:09Z</dc:date>
    </item>
  </channel>
</rss>

