<?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: How to create ellipse curve? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9064173#M39611</link>
    <description>&lt;P&gt;Thank you. All work!&lt;/P&gt;&lt;P&gt;I'm a girl&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please, help me to another question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/how-to-get-point-on-ellipse/m-p/9029436#M41332" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/how-to-get-point-on-ellipse/m-p/9029436#M41332&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2019 08:33:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-03T08:33:17Z</dc:date>
    <item>
      <title>How to create ellipse curve?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9046283#M39607</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 points (A and B) on ellipse curve and ellipse curve. I want to create ellipse curve from point A to point B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to do it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 06:40:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9046283#M39607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-25T06:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ellipse curve?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9046330#M39608</link>
      <description>&lt;P&gt;You will need more detailed information to create the elliptical curve. Just two points is insufficiently specific. Please read the Revit API documentation and some basic geometric information about ellipse properties and calculations:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revit API elliptical curve constructor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2020/a3da8ed5-5fea-087f-6989-c987ce7ae47f.htm" target="_blank"&gt;https://www.revitapidocs.com/2020/a3da8ed5-5fea-087f-6989-c987ce7ae47f.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basic properties of ellipses:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Ellipse" target="_blank"&gt;https://en.wikipedia.org/wiki/Ellipse&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 07:02:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9046330#M39608</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-09-25T07:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ellipse curve?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9052851#M39609</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;he says:&lt;/P&gt;&lt;P&gt;"I have 2 points (A and B) on ellipse curve &lt;STRONG&gt;&lt;U&gt;and ellipse curve&lt;/U&gt;&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in fact he could just hand over the original Ellipse's properties to the new Ellipse's constructor.&lt;/P&gt;&lt;P&gt;Thus, only the startParameter and endParameter values are to be calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there are at least two ways to get there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, use originalEllipse.Project(firstPoint).Parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, create a line by the two points.&lt;/P&gt;&lt;P&gt;Intersect line and originalEllipse.&lt;/P&gt;&lt;P&gt;The intersection result also provides the parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both the constructor and the Project/Intersect methods use raw parameters, so I think the values can be used without originalEllipse.ComputeNormalizedParameter() in between.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ah, of course the two points define two possible elliptical segments.&lt;/P&gt;&lt;P&gt;One could create both (by switching start and end parameters?) and choose the shorter one &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rudi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 13:45:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9052851#M39609</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2019-09-27T13:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ellipse curve?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9052997#M39610</link>
      <description>&lt;P&gt;I love your suggestion. You read the question more carefully than I did. Looking forward to hearing a response to this. I wish you and all readers a wonderful weekend!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 14:30:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9052997#M39610</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-09-27T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ellipse curve?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9064173#M39611</link>
      <description>&lt;P&gt;Thank you. All work!&lt;/P&gt;&lt;P&gt;I'm a girl&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please, help me to another question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/how-to-get-point-on-ellipse/m-p/9029436#M41332" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/how-to-get-point-on-ellipse/m-p/9029436#M41332&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 08:33:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9064173#M39611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-03T08:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ellipse curve?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9064230#M39612</link>
      <description>&lt;P&gt;Congratulations on solving the task (and on being a girl too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you like to share a snippet of code showing how you did it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 09:06:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9064230#M39612</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-10-03T09:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create ellipse curve?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9064614#M39613</link>
      <description>&lt;PRE&gt;Function CreateEllipseBy2Points(doc As Document, p0 As XYZ, p1 As XYZ, el As Ellipse) As Ellipse


        Dim Angle0 As Double

        Dim Angle1 As Double


        Dim ira0 As IntersectionResultArray
        Dim l0 As Line = Line.CreateBound(el.Center, p0)
        el.Intersect(l0, ira0)

        Dim ira1 As IntersectionResultArray
        Dim l1 As Line = Line.CreateBound(el.Center, p1)
        el.Intersect(l1, ira1)

        If ira0.Size &amp;gt; 0 Then
            Angle0 = ira0.Item(0).UVPoint.U
        Else
            Angle0 = el.GetEndParameter(0)
        End If

        If ira1.Size &amp;gt; 0 Then
            Angle1 = ira1.Item(0).UVPoint.U
        Else
            Angle1 = el.GetEndParameter(1)
        End If

         Return Ellipse.CreateCurve(el.Center, el.RadiusX, el.RadiusY, el.XDirection, el.YDirection, Angle0, Angle1)


    End Function&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:21:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-ellipse-curve/m-p/9064614#M39613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-03T12:21:21Z</dc:date>
    </item>
  </channel>
</rss>

