<?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: Ellipse ARC Start Parameter from DXF ? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/2251384#M74663</link>
    <description>i use that but not work for me&lt;BR /&gt;
i try search at Autocad help I found this :&lt;BR /&gt;
p(u) = c + a* cos(u) + b* sin(u) &lt;BR /&gt;
the c parameter is the center&lt;BR /&gt;
but not sure that work&lt;BR /&gt;
any body can help me ?</description>
    <pubDate>Wed, 17 Sep 2008 06:48:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-09-17T06:48:40Z</dc:date>
    <item>
      <title>Ellipse ARC Start Parameter from DXF ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/2251382#M74661</link>
      <description>Hello to all DXF specialists,&lt;BR /&gt;
&lt;BR /&gt;
how can I calculate the start angle and end angle of an ellipse arc, which has a start parameter and end parameter value in the dxf file ?&lt;BR /&gt;
&lt;BR /&gt;
The documentation from Autodesk tells a formula which seems strange to me because it calculates a sum of two vectors and gives a number as result - which mathematically seems wrong to me and is not calculatable ...&lt;BR /&gt;
&lt;BR /&gt;
The information that 0 to 2pi is a full ellipse is nice, but the values between 0 to pi/2 are not very concluant for an allipse which is rotated about 30 degrees.&lt;BR /&gt;
&lt;BR /&gt;
The start parameter and the endparameter doesn't correspond to angles, but I need to calculate the angle to draw with .NET functions the ellipse arc from the dx file ...&lt;BR /&gt;
&lt;BR /&gt;
Please help me to understand this formula ...&lt;BR /&gt;
&lt;BR /&gt;
Anzbodz who has some code segment showing how to calculate these start angles and end angles (or sweep angle)&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
&lt;BR /&gt;
Martin M. Mayr</description>
      <pubDate>Fri, 09 May 2008 09:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/2251382#M74661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-09T09:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ellipse ARC Start Parameter from DXF ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/2251383#M74662</link>
      <description>This may help (It's from vba help files)&lt;BR /&gt;
The start and end parameters of the ellipse are calculated based on the following equation: &lt;BR /&gt;
&lt;BR /&gt;
P(Theta) = A * cos(Theta) + B * sin(Theta) &lt;BR /&gt;
&lt;BR /&gt;
where A and B are the semimajor and -minor axes respectively. &lt;BR /&gt;
&lt;BR /&gt;
For example, if your start angle is Theta1, the corresponding start parameter is P(Theta1) calculated based on the above formula. Similarly, if your end angle is Theta2, the corresponding end parameter is P(Theta2) calculated based on the above formula. &lt;BR /&gt;
&lt;BR /&gt;
You can use either angle or parameter to create the ellipse.</description>
      <pubDate>Sun, 11 May 2008 23:14:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/2251383#M74662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-11T23:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ellipse ARC Start Parameter from DXF ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/2251384#M74663</link>
      <description>i use that but not work for me&lt;BR /&gt;
i try search at Autocad help I found this :&lt;BR /&gt;
p(u) = c + a* cos(u) + b* sin(u) &lt;BR /&gt;
the c parameter is the center&lt;BR /&gt;
but not sure that work&lt;BR /&gt;
any body can help me ?</description>
      <pubDate>Wed, 17 Sep 2008 06:48:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/2251384#M74663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-17T06:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ellipse ARC Start Parameter from DXF ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/8846555#M74664</link>
      <description>&lt;P&gt;Just calculate start angle from start parameter, &amp;nbsp;which get from dxf file.&lt;/P&gt;&lt;P&gt;First, calculate the point at start parameter.&lt;/P&gt;&lt;P&gt;p(u) = a * sin(u) + b * cos(u).&lt;/P&gt;&lt;P&gt;Then contruct a line, the start point is center point, end point is p.&lt;/P&gt;&lt;P&gt;The start angle is the angle &amp;nbsp;between line and major axis.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 08:38:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/8846555#M74664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T08:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ellipse ARC Start Parameter from DXF ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/8846755#M74665</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the following formula, where ratio is the ratio between minor axis and major axis (DXF group code 40) and assuming both param and angle are measured counterclockwise from the major axis vector (DXF group code 11).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;double startAngle = Math.Atan2(Math.Sin(startParam) * ratio, Math.Cos(startParam));&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ellipse.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/646485iBD38A93B8E279298/image-size/large?v=v2&amp;amp;px=999" role="button" title="ellipse.png" alt="ellipse.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 10:36:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ellipse-arc-start-parameter-from-dxf/m-p/8846755#M74665</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-06-12T10:36:09Z</dc:date>
    </item>
  </channel>
</rss>

