defining ellipses or parabolas using equations
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
defining ellipses or parabolas using equations

 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks
Author Message
Asmodeus
Guest





Posted: Mon Nov 28, 2005 1:10 am    Post subject: defining ellipses or parabolas using equations Reply with quote

I have a requirement that needs me to input an ellipse and/or a
parabola via a particular set of equations, is there any way to do
this in solidworks? does solidworks allow the user to input geometric
data via equation?

thanks

Back to top
John Layne
Guest





Posted: Mon Nov 28, 2005 1:10 am    Post subject: Re: defining ellipses or parabolas using equations Reply with quote

Asmodeus wrote:
Quote:
I have a requirement that needs me to input an ellipse and/or a
parabola via a particular set of equations, is there any way to do
this in solidworks? does solidworks allow the user to input geometric
data via equation?

thanks

Do a search in the SolidWorks Help file for "equations" and "curves,
through XYZ points". The later allows you to import data created in Excel.


John Layne
www.solidengineering.co.nz
Back to top
That70sTick
Guest





Posted: Mon Nov 28, 2005 1:10 am    Post subject: Re: defining ellipses or parabolas using equations Reply with quote

Yes. Since ellipses and parabolas are governed by simple equations.

What form of ellipse and parabola equations are you trying to use?
Ellipses are easy to govern by major and minor axes. Parabolas have
control poits for focus and apex. Also, you can constrain an ellipse
or parabola curve to be coincident with predefined points (with
positions controlled by dmensions driven by equation).

As for the generic equation control, SW can control any individual
dimension by equation. SW is ow also capable of using
constants/variables for use in other equations.

Back to top
TOP
Guest





Posted: Mon Nov 28, 2005 1:10 pm    Post subject: Re: defining ellipses or parabolas using equations Reply with quote

Why not use the equations for an ellipse to find the major and minor
diameters and then adjust the dimensions. Plotting points to get built
in geometry just doesn't make sense.
Back to top
cadguru
Guest





Posted: Tue Nov 29, 2005 1:10 am    Post subject: Re: defining ellipses or parabolas using equations Reply with quote

I would add the data directly to the SW database using a simple VB
interface, possibly even create an add-in if you do it enough.

Check out the VB calls for parabola and ellipse, then create your VB
equations in VB with the appropriate inputs. This would allow you to easily
create exactly what you need without worrying about the subtleties of XYZ
point splines.

At a minimum I would do what That70sTick and TOP suggested.

Use real geometry not splines when you can.

Cadguru


"Asmodeus" <asmodeus@hell.com> wrote in message
news:h7bko11tjkthchsuvau0inol57tv0c5fi6@4ax.com...
Quote:
I have a requirement that needs me to input an ellipse and/or a
parabola via a particular set of equations, is there any way to do
this in solidworks? does solidworks allow the user to input geometric
data via equation?

thanks
Back to top
That70sTick
Guest





Posted: Tue Nov 29, 2005 5:10 pm    Post subject: Re: defining ellipses or parabolas using equations Reply with quote

A good bit of programming, but not always fit for drawing conics
(parabolas, ellipses).

Experiment: use eqcurve to draw a y = x^2 curve from x=0 to x=5 with
intervals of 1.0 (6 points). In another sketch, overlay a parabola,
match spline endpoints and put the focus on the line x=0 (= right
plane). You will see that the spline points are in the right place,
but the spline curve weaves back and forth across the parabola. Also,
the slope of the spline at any given point is not correct (slope of
y=x^2 parabola at point x: dy/dx = 2x).
Back to top
Tin Man
Guest





Posted: Tue Nov 29, 2005 5:10 pm    Post subject: Re: defining ellipses or parabolas using equations Reply with quote

http://mysite.verizon.net/mjlombard/Macros/eqcurve.zip

Ken
Back to top
That70sTick
Guest





Posted: Tue Nov 29, 2005 9:10 pm    Post subject: Re: defining ellipses or parabolas using equations Reply with quote

Defintiely not trying to slam Matt's program. I was 100% sincere when
I said it was good work.
Back to top
matt
Guest





Posted: Tue Nov 29, 2005 9:10 pm    Post subject: Re: defining ellipses or parabolas using equations Reply with quote

In article <1133276950.194086.28620@z14g2000cwz.googlegroups.com>, rol4
@liquidschwarz.com says...
Quote:
A good bit of programming, but not always fit for drawing conics
(parabolas, ellipses).

Experiment: use eqcurve to draw a y = x^2 curve from x=0 to x=5 with
intervals of 1.0 (6 points). In another sketch, overlay a parabola,
match spline endpoints and put the focus on the line x=0 (= right
plane). You will see that the spline points are in the right place,
but the spline curve weaves back and forth across the parabola. Also,
the slope of the spline at any given point is not correct (slope of
y=x^2 parabola at point x: dy/dx = 2x).


I wasn't going to post a link to my macro because I didn't think it was
appropriate, but someone else did, so I'd better chime in.

As always, there are appropriate ways and times to use tools, and it's
not fair to just plug something in at random and say "see, it sucks" and
leave it at that.

Splines interpolate between points, and the macro gives you the option
to set point density. A spline plotted by points will never be as
accurate (particularly at the ends) as the real curve type itself, but
the accuracy can be improved by increasing the point density and
building it bigger than it needs to be.

Still, I'd draw a regular elipse or parabola and use native SW equations
or Excel to locate the axis points and/or center, like other people have
already suggested.

Matt
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB