Turn on suggestions

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

Showing results for

- Navigation
- Solid Edge
- Forums
- Blogs
- Knowledge Bases

- Siemens PLM Community
- Solid Edge
- Solid Edge Forum
- Equation Driven Curve

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

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

03-08-2015 12:40 PM - edited 03-08-2015 12:42 PM

In response to @Imics response regarding an equation driven curve in Solid Edge, I gave this a shot and the result is a utility with a UI as below:

**Note:** This tool absolutely does not handle any error situations - it won't simply create the curve if any of the inputs seem to be incorrect or inconsistent.

**•** The program works in both Draft and Part environments with a sketch active.

**•** Look for the curve near the origin when testing with the default inputs as seen in screenshot above.

1. The first input is the equation which must use the variable '**x**' as seen above. No other letter is recognized.

2. The equation is evaluated for each value of the range specified as *from* and *to* over an interval of the number of points on curve. The number of points on the curve are other than the endpoints.

3. Normally these operators are allowed:

+ - * / and %

^ for raised to power, for example x^5

sqrt, sin, cos, tan, atan, acos, asin, sinh, cosh, tanh

exp, ln, log, abs, floor, round

**•** Constant PI

**•** Use of 3x in place of 3 * x is allowed. Do not use 3**.**x

Examples:** 4Sin(x) + 5** creates a sine curve as above.

* Sqrt(x) *creates:

** 3x + 4 **creates:

Another example is **x^2 + 6**

**Warning:** Some equation curves may appear awful.

The program and its source code are provided as part of an illustrated tutorial which runs though the steps of coding this utitlity.

The program can be downloaded on the last page of this tutorial

This utility is a prototype from the **Solid Edge Maker Faire.**

Read the other Maker tutorials here.

BR,

~Tushar Suradkar

Solved! Go to Solution.

29 REPLIES 29

Re: Equation Driven Curve

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

03-09-2015 01:33 PM

Tushar,

This is great. Man I could have used this in my past life.

I can think of a few specfic times that i needed to plot a curve and instead created an X|Y table and used keypoint curve or creaded a function driven variable.

nice tool for when it's needed.

thanks !

Re: Equation Driven Curve

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

03-10-2015 12:34 AM - edited 03-10-2015 12:42 AM

Matt, You nailed it - useful when needed.

Also thanks for establishing the equivalence of X-Y plot curve and the equation curve.

I saw some online equation curve plotters which dramatically plotted a full circle using the standard x^2 + y^2 = c formula which even SW does not attempt to.

~Tushar

Re: Equation Driven Curve

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

03-10-2015 10:52 AM

I created a similar thing for a helical curve some time ago, as SE didn't have a helix sketch command (I didn't have a use for it, just wanted to know how)

My method was to create an excel spreadsheet and then use that as input for a curve by table.

One of the things I discovered was that curve by table has a tolerance setting and by changing that value you could improve the results and give a better start and end to the curve.

HP Z420 16GB RAM

Quadro K4000

SE2019 MP5 on Windows 10 Pro 64.

Quadro K4000

SE2019 MP5 on Windows 10 Pro 64.

Re: Equation Driven Curve

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

03-11-2015 03:42 AM

Even after having coded this, i was curious to know what are the industrial applications of the Equation Curve.

Matt @MattJohnsonPAC can you pls cite some examples from the past.

Imre @Imics the original requestor is also going to post few more uses after returning from his vacation.

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

03-11-2015 07:38 AM - edited 03-11-2015 07:39 AM

In my past life I worked at Hill-Rom designing hospital bed and stretchers.

http://www.hill-rom.com/usa/Products/Category/Hospital-Beds/

These bed articulate in many areas: head up/down, knee up/down, height from floor up/down, trend up/down, siderail up/down, etc... lots of movement.

Newer beds have a translating pivot when the head section moves up/down. A fixed pivot will push the patient toward the foot of the bed as the head section raises and puts a lot of pressure on the patient's shoulders.

To eliminate these issues, of pushing the patient down the bed and shoulder pressure, the head section needs to translate backwards as it pivots up. The curve of this motion was derived from anthropometric measurements. Specfically, it was learned that as we bend at the waist it is the trocanter that needs to be considered for motion to be derived from.

So considering these known anthropometric measurements we derived the ideal motion for the head section to traslate as it pivoted. We had the theretical but had no mechanics to do this physically yet. By creating the equation's curve we were able to connect the head section's pivot point to the curve and see the real motion. Once we had this we could begin to engineer the mechanics that would drive the pivot to produce that same motion.

I didn't have this cool little tool at that time. I took 2 different approaches. First approach was to convert my curve to X|Y table and create a keypoint curve, the second was to use the variable table and create a function to calculate the Y based on X. I found that I liked the function driven Varable best. Once I did this then I would increment the variable and include geometry from the head section, by repeating this and incrementing the variable and also removing the included relation, I could "draw" the entire range of motion.

none the less, your new Equation Driven Curve tool would have been very useful in this situation. Thanks again.

Re: Equation Driven Curve

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

03-11-2015 01:33 PM - edited 03-11-2015 01:34 PM

That's amazing Matt. Thanks for the insight and for sharing the application of equation curve.

@beachcomber the tolerance setting is not fully understood, though I agree it surely allows better control over the start and end conditions. This has been a problem with the BSpline curve which changes its nature and curvature with smaller changes near the ends.

Re: Equation Driven Curve

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

03-15-2015 03:13 PM - edited 03-15-2015 04:19 PM

My Friend,

First of all, thank you for your effort!

About EDC!

In my life and my customers life there are lots of areas where this command should be useful.

For example:

- a barrel shaped spring modeling
- sinus wave cutout part modeling
- modeling parts what are described by function
- ... etc

The macro (what was written by you) is great... Why? I know lots of engineers who doesn't use MS excel because they have a "freeware" solutions like openoffice, so they can't use Curve by table command, but They need any other solution...

Huge thanks for it, but... (this is not displeasure)

EDC should works in polar and Cartesian coordinate systems. It should works in 3D (x;y;z) not only 2d... Hmmm.

I know our competitors and there...

BR,

Imics

http://solidedgest.wordpress.com/

http://solidedgest.wordpress.com/

Re: Equation Driven Curve

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

10-29-2015 11:43 AM

Hi Tushar,

Thaniks for this tool, it looks ideal for my purposes! I have an error message that displays when I try execute the macro, stating that info.lundin.math could not be loaded. My understanding of the tutorial was that this was only needed in VB, which I do not have. Any advice would be appreciated.

Neys

Re: Equation Driven Curve

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

10-29-2015 08:50 PM

Download the **latest maintenance pack** from GTAC.

Follow Siemens PLM Software

© 2019 Siemens Product Lifecycle Management Software Inc