AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Reply
Active Contributor
norm77
Posts: 38
Registered: ‎03-17-2010
Message 1 of 39 (626 Views)
Accepted Solution

Does anyone know the formula (s) used for making a PEllipse?

626 Views, 38 Replies
05-02-2012 06:10 AM

Hello,

  I write programs for large CNC routers, and I'm trying to make a parametric program that uses an ellipse in it.  I need to know the formula or formulas used to produce the arcs that make up a pellipse so that I can get the radii, and end points of each arc.  Any help would be greatly appreciated, Thanks.

 

-Norm

Contributor
hayalexj
Posts: 13
Registered: ‎09-22-2010
Message 2 of 39 (607 Views)

Re: Does anyone know the formula (s) used for making a PEllipse?

05-02-2012 08:17 AM in reply to: norm77

In the past I have used the geometry of http://en.wikipedia.org/wiki/Trammel_of_Archimedes in VBA to generate coordinates along eliptical arcs.

 

A

Active Contributor
norm77
Posts: 38
Registered: ‎03-17-2010
Message 3 of 39 (590 Views)

Re: Does anyone know the formula (s) used for making a PEllipse?

05-02-2012 10:58 AM in reply to: hayalexj

hayalexj wrote:

In the past I have used the geometry of http://en.wikipedia.org/wiki/Trammel_of_Archimedes in VBA to generate coordinates along eliptical arcs.

 

A



Thanks, I have looked at that already - which is great, but doesn't give enough information.  I have also looked into the "five centered arch" in http://mysite.du.edu/~jcalvert/math/ellipse.htm, which is ok, but not as accurate or usable as the pellipse in AutoCAD.

 

For programming, the current way a pellipse is created is great.  Each quadrant is made up of 4 arcs.  The end point for each arc is in line with the center of the arcs on either side of it, which flow seamlessly into each other.

 

For my purposes, I need to be able to calculate the radius, and start & end point of every arc (referenced from the center of the ellipse).  Thanks.

 

-Norm

Contributor
hayalexj
Posts: 13
Registered: ‎09-22-2010
Message 4 of 39 (583 Views)

Re: Does anyone know the formula (s) used for making a PEllipse?

05-02-2012 11:20 AM in reply to: norm77
I don't know why you would want to create arcs? Surely that's an inaccurate way to do it?

I just generated a series of points along the elliptical arc and fed that directly into the tool path.

What more information do you need in addition to that wikipedia page?
Active Contributor
norm77
Posts: 38
Registered: ‎03-17-2010
Message 5 of 39 (581 Views)

Re: Does anyone know the formula (s) used for making a PEllipse?

05-02-2012 11:31 AM in reply to: hayalexj

hayalexj wrote:
I don't know why you would want to create arcs? Surely that's an inaccurate way to do it?

I just generated a series of points along the elliptical arc and fed that directly into the tool path.

What more information do you need in addition to that wikipedia page?

Unfortunately I can't create ellipses on the machines I'm programming.  The accuracy of the Pellipse isn't perfect, but good for my application, and easy to check the logic in Excel and AutoCAD.  I really like the Trammel of Archimedes, but I don't know how to apply it.  The basic parametric programming logic I do can be replicated within excel.


-Norm

Contributor
hayalexj
Posts: 13
Registered: ‎09-22-2010
Message 6 of 39 (577 Views)

Re: Does anyone know the formula (s) used for making a PEllipse?

05-02-2012 11:48 AM in reply to: norm77
What I did would not run in Excel without modification. It used the IntersectsWith function to locate the point at which a circle moving along the x axis hit the y axis and then projected arc coordinates through that.
Active Contributor
norm77
Posts: 38
Registered: ‎03-17-2010
Message 7 of 39 (569 Views)

Re: Does anyone know the formula (s) used for making a PEllipse?

05-02-2012 12:40 PM in reply to: hayalexj

This is what I've been able to figure out so far...

 

 

PELLIPSE CALCULATE.jpg

 

Based on the picture shown above:

 

AF is major axis

AB is minor axis

 

Line IHD is perpendicular to BF

Line JIC is perpendicular to BD

Line HGE is perpendicular to DF

 

Line GF = First Arc Radius

Line HE = Second Arc Radius

Line IC = Third Arc Radius

Line JB = Fourth Arc Radius

 

Contributor
hayalexj
Posts: 13
Registered: ‎09-22-2010
Message 8 of 39 (561 Views)

Re: Does anyone know the formula (s) used for making a PEllipse?

05-02-2012 01:06 PM in reply to: norm77
I think you would have to work out the angle between JC and JA and so on depending on the dims of your arc... Sounds like a lot of effort for an inaccurate way to do it.

The trammel option just requires the ratio of long to short dimension...
Active Contributor
norm77
Posts: 38
Registered: ‎03-17-2010
Message 9 of 39 (558 Views)

Re: Does anyone know the formula (s) used for making a PEllipse?

05-02-2012 01:38 PM in reply to: hayalexj

Yes the trammel option gives X and Y coordinates easily (If only it could be that easy :smileyfrustrated:), but the arcs between can't be calculated which means they would not line up.  Trammel option doesn't give the radii of the arcs.

 

The key to making this without being able to program ellipses is to have all the arcs have the same start angle as the one that it connects to.

Contributor
hayalexj
Posts: 13
Registered: ‎09-22-2010
Message 10 of 39 (554 Views)

Re: Does anyone know the formula (s) used for making a PEllipse?

05-02-2012 01:43 PM in reply to: norm77
So forget the arcs; they serve no purpose.
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.