turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Close

AutoCAD 2010/2011/2012

- Autodesk Community
- >
- AutoCAD
- >
- AutoCAD 2010/2011/2012
- >
- Does anyone know the formula (s) used for making a...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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

Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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?

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?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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

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

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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...

The trammel option just requires the ratio of long to short dimension...

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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 ), 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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-02-2012 01:43 PM in reply to:
norm77

So forget the arcs; they serve no purpose.

Search This Board

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Announcements

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.

- Privacy | Legal Notices & Trademarks | Report Noncompliance | Site map | © Copyright 2014 Autodesk Inc. All rights reserved

Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Please see the Autodesk Creative Commons FAQ for more information.