<?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: Thoughts on if this is achievable in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703781#M64986</link>
    <description>&lt;P&gt;See the methods of Curve2d class in the Geometry namespace, and the&lt;/P&gt;&lt;P&gt;Curve class in the DatabaseServices namespace. A&amp;nbsp;Polyline derives from&lt;/P&gt;&lt;P&gt;the latter, so all of the methods of the Curve class can be used with a&lt;/P&gt;&lt;P&gt;Polyline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The names of the methods of both classes make what they do fairly&lt;/P&gt;&lt;P&gt;obvious.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2010 23:46:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-28T23:46:04Z</dc:date>
    <item>
      <title>Thoughts on if this is achievable</title>
      <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2702863#M64979</link>
      <description>&lt;P&gt;I have been asked if it is possible to develop a tool that will determine the maximum slew between 2 alignments and minimum&amp;nbsp;clearance between 2 alignments. I have attached 2 images to help describe what is to be achieved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my research, I haven't found such a function, although, apparently microstation has one similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Picking the lines is the easy bit. I would assume that I would need to set an interval at which to check along the proposed alignment, and then&amp;nbsp;iterate along that, determining the perpendicular point of the existing alignment, storing the value, and comparing it to the largest/smallest. At a quick glance, the only limitation I can see is the tolerance at which is set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone tried somthing similar to this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 08:14:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2702863#M64979</guid>
      <dc:creator>BrentBurgess1980</dc:creator>
      <dc:date>2010-06-28T08:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Thoughts on if this is achievable</title>
      <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2702993#M64980</link>
      <description>&lt;P&gt;The Curve2d/3d classes in the Geometry namepsace has&lt;/P&gt;&lt;P&gt;GetClosestPointTo() that takes another curve as input,&lt;/P&gt;&lt;P&gt;and is supposed to return the point on the input curve&lt;/P&gt;&lt;P&gt;that's closest to the curve the method is called on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whether it actually works or not, i can't say and because&lt;/P&gt;&lt;P&gt;it is known that there are some methods in the 2d geometry&lt;/P&gt;&lt;P&gt;classes that are not implemented, caveat emptor.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 12:32:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2702993#M64980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-28T12:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Thoughts on if this is achievable</title>
      <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703063#M64981</link>
      <description>&lt;P&gt;Thanks Tony - I'll take a look at that&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 13:11:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703063#M64981</guid>
      <dc:creator>BrentBurgess1980</dc:creator>
      <dc:date>2010-06-28T13:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Thoughts on if this is achievable</title>
      <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703705#M64982</link>
      <description>&lt;P&gt;I can think of several methods to accomplish this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is your required accuracy?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the curves are large compared to the slew distance you could use the .net equivalent to the vlax-curve-getclosestpointto lisp expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote and tested the lisp routine and it works OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are welcome to the lisp code if you like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another woul be to use the .net equivalent to the vlax-curve-getfirstderiv of the point on the curve.&lt;/P&gt;&lt;P&gt;Once you have the first derivative (slope) you can create a line or ray that could be created at pi / 2 rotated from the slope, and then use the intersectwith method to calculate the distance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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 21:55:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703705#M64982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-28T21:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Thoughts on if this is achievable</title>
      <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703751#M64983</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;The Curve2d/3d classes in the Geometry namepsace has&lt;/P&gt;&lt;P&gt;GetClosestPointTo() that takes another curve as input,&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I might need something similar for my code. Would the Curve2d.GetClosestPointTo(Point2d) return the intersection point on the polyline nearest the 2d point specified, where a line drawn between is always at right angles to the polyline?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess if the point is beyond the endpoints of the polyline then the line would not be at 90° so you would need some type of test to check for that condition. Is there a way to find the distance along the polyline to that intersection point?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 22:47:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703751#M64983</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2010-06-28T22:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Thoughts on if this is achievable</title>
      <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703769#M64984</link>
      <description>&lt;P&gt;No, it returns the point on the curve that is closest to the point you pass as the argument,&lt;/P&gt;&lt;P&gt;so any input coordinate you pass would have to be checked first to see if it is already on&lt;/P&gt;&lt;P&gt;the input curve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The OP's problem is relatively simple if all curve/polyline segments are straight.&lt;/P&gt;&lt;P&gt;When curved segments are involved,it becomes a bit more complicated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 23:32:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703769#M64984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-28T23:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Thoughts on if this is achievable</title>
      <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703777#M64985</link>
      <description>&lt;P&gt;Yeah, mine is a separate question, bit of a hijack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, that is what I want, the input point is not on the curve but the returned point is on the curve. The line between the two will be at right angles to the polyline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I just want to find the distance along the polyline to the returned point. Is there a function for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 23:39:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703777#M64985</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2010-06-28T23:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Thoughts on if this is achievable</title>
      <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703781#M64986</link>
      <description>&lt;P&gt;See the methods of Curve2d class in the Geometry namespace, and the&lt;/P&gt;&lt;P&gt;Curve class in the DatabaseServices namespace. A&amp;nbsp;Polyline derives from&lt;/P&gt;&lt;P&gt;the latter, so all of the methods of the Curve class can be used with a&lt;/P&gt;&lt;P&gt;Polyline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The names of the methods of both classes make what they do fairly&lt;/P&gt;&lt;P&gt;obvious.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 23:46:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703781#M64986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-28T23:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Thoughts on if this is achievable</title>
      <link>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703787#M64987</link>
      <description>&lt;P&gt;Ok, thanks, Polyline.GetDistAtPoint(Point3d) appears to be the one I want.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 23:57:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/thoughts-on-if-this-is-achievable/m-p/2703787#M64987</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2010-06-28T23:57:17Z</dc:date>
    </item>
  </channel>
</rss>

