<?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: Defining a spline with a formula in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5918207#M302087</link>
    <description>&lt;P&gt;As a starting point, you may find PolynomialFunction.lsp helpful, available &lt;A href="http://cadtips.cadalyst.com/lisp-code-modules/draw-polynomial-functions" target="_self"&gt;here&lt;/A&gt;. &amp;nbsp;It uses &lt;EM&gt;multiple&lt;/EM&gt; powers of X [if you ask it to], and it uses only &lt;EM&gt;integer&lt;/EM&gt; exponents, but at least it includes a way of building a Spline [or optionally, a Polyline] by calculating Y values at increments in X value, by a formula involving powers of X, and to whatever degree of precision [spacing between X positions] you choose.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2015 18:33:56 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2015-11-20T18:33:56Z</dc:date>
    <item>
      <title>Defining a spline with a formula</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5918074#M302085</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to define a spline with a formula using constraints or another method? I need to create a model of an ogee spillway where part of it is defined by a formula and would like to do it as accurately as possible rather than using table values. The crest of the curve needs to be tangent to the horizontal and the lower end of the curve needs to be tangent to an existing 0.75:1 slope&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/201987iEE3992FAC4B287BC/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="spline formula.png" title="spline formula.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 17:30:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5918074#M302085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T17:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a spline with a formula</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5918203#M302086</link>
      <description>&lt;P&gt;You probably only need a handful of points.&lt;/P&gt;
&lt;P&gt;I would do the hand calculations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A common mistake I see many uses making - is thinking more points is better, when it can be easily demonstrated that defining the curves with as few points as possible creates a smoother curve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to the "smoothness" of the curve - consider the actual fabrication process.&amp;nbsp; How close do they hold the measurements?&lt;/P&gt;
&lt;P&gt;"Accurately as possible" doesn't make logical sense comparing CAD to physical.&lt;/P&gt;
&lt;P&gt;In a CAD program like Autodesk Inventor with formula driven sketch, "accurately as possible" is far more accurate than possible.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 18:35:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5918203#M302086</guid>
      <dc:creator>JDMather</dc:creator>
      <dc:date>2015-11-20T18:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a spline with a formula</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5918207#M302087</link>
      <description>&lt;P&gt;As a starting point, you may find PolynomialFunction.lsp helpful, available &lt;A href="http://cadtips.cadalyst.com/lisp-code-modules/draw-polynomial-functions" target="_self"&gt;here&lt;/A&gt;. &amp;nbsp;It uses &lt;EM&gt;multiple&lt;/EM&gt; powers of X [if you ask it to], and it uses only &lt;EM&gt;integer&lt;/EM&gt; exponents, but at least it includes a way of building a Spline [or optionally, a Polyline] by calculating Y values at increments in X value, by a formula involving powers of X, and to whatever degree of precision [spacing between X positions] you choose.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 18:33:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5918207#M302087</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-11-20T18:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a spline with a formula</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5919947#M302088</link>
      <description>&lt;P&gt;Good points JDMather, I asked an engineer about the construction of the curve and it will be hand-finished to less than 1/8" to ensure that the water flows over smoothly.&amp;nbsp; I'll use that tolerance as a guideline when determining what are the least amount of points I can use to accurately define the curve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the link to the lisp Kent, it looks interesting but as this is a one-off I'll build the table in Excel.&amp;nbsp; If we need to do this procedure frequently I'll modify the lisp to suit.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2015 23:56:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5919947#M302088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-22T23:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a spline with a formula</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5920893#M302089</link>
      <description>&lt;P&gt;Jon_b,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at generating some points using the given equation y = 0.3454x^1.85 and found I needed to do some scaling of the equation to fit the points and get the desired slope of 1:0.75 at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a delta x of 2376 (2809 – 433) and a delta y of 1710 (139750-138040) for the curve from its crest to its transition point with the straight line, the given equation does not come close to providing correct points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = 0.34548*x^1.85&lt;/P&gt;&lt;P&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6242&lt;/P&gt;&lt;P&gt;400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22503&lt;/P&gt;&lt;P&gt;600&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 47643&lt;/P&gt;&lt;P&gt;800&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 81122&lt;/P&gt;&lt;P&gt;1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 122581&lt;/P&gt;&lt;P&gt;1200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 171755&lt;/P&gt;&lt;P&gt;1400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 228433&lt;/P&gt;&lt;P&gt;1600&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 292445&lt;/P&gt;&lt;P&gt;1800&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 363645&lt;/P&gt;&lt;P&gt;2000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 441904&lt;/P&gt;&lt;P&gt;2200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 527114&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Excel’s Goal seek feature I determine a fudge factor needed to scale the equation so that at x = 2376 y is equal to 1710.&amp;nbsp; The fudge factor is 0.002814 so the equation to use is:&lt;/P&gt;&lt;P&gt;Y = 0.002814*0.34548*x^1.85&amp;nbsp;&amp;nbsp; or Y = 0.00097203*x^1.85 &amp;nbsp;&lt;/P&gt;&lt;P&gt;This yields the following points:&lt;/P&gt;&lt;P&gt;x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&lt;/P&gt;&lt;P&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;/P&gt;&lt;P&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17.56&lt;/P&gt;&lt;P&gt;400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63.31&lt;/P&gt;&lt;P&gt;600&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 134.05&lt;/P&gt;&lt;P&gt;800&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 228.24&lt;/P&gt;&lt;P&gt;1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 344.89&lt;/P&gt;&lt;P&gt;1200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 483.24&lt;/P&gt;&lt;P&gt;1400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 642.71&lt;/P&gt;&lt;P&gt;1600&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 822.81&lt;/P&gt;&lt;P&gt;1800&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1023.14&lt;/P&gt;&lt;P&gt;2000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1243.33&lt;/P&gt;&lt;P&gt;2200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1483.07&lt;/P&gt;&lt;P&gt;2376&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1710.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that at x=2376 the slope is the desired value of 1 : 0.75&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a plot of th curve:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/202395i59BD25F12C8CCC75/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="ogee.JPG" title="ogee.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just multiply the y coordinates by -1 to invert the shape and reposition it at y = 139750.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 15:29:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5920893#M302089</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2015-11-23T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a spline with a formula</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5921934#M302090</link>
      <description>&lt;P&gt;Thanks Lee, I think the crest geometry is more important than the tangency at the downslope but I'll pass the information on to the engineer.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 01:43:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5921934#M302090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-24T01:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a spline with a formula</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5922352#M302091</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Clearly this thread has been resolved.&amp;nbsp; Thought I’d make an additional comment, though, because the drawing reveals and interesting relationship between&amp;nbsp;the choice of&amp;nbsp;Units,&amp;nbsp;and equations containing fractional exponents.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;The use of Millimeters as a base unit requires a conversion factor (1000 * (.001^1.85)), but using Meters does not.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;EM&gt;Another reason, perhaps, to avoid using two different units for dimensioning (let’s not even get into the 1/8” tolerance&lt;/EM&gt;).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;To analyze the validity of the&amp;nbsp;formula further, differentiation converts:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;F(x) = 0.3454x^1.85&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;To&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;F’(x) = 0.63899x^0.85&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Solving for a slope of 1/0.75 (or 1.333333) gives the equation:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;1.333333 = &amp;nbsp;0.63899X^0.85&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;1.333333/0.63899 = X^0.85&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;2.086626 = X^0.85&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;2.086626^(1/0.85) = X&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;X = 2.37584 Meters&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 10:05:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/defining-a-spline-with-a-formula/m-p/5922352#M302091</guid>
      <dc:creator>SEANT61</dc:creator>
      <dc:date>2015-11-24T10:05:40Z</dc:date>
    </item>
  </channel>
</rss>

