<?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: function f(x) in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12344354#M26375</link>
    <description>&lt;P&gt;fantastic points&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 18:05:58 GMT</pubDate>
    <dc:creator>TheCADnoob</dc:creator>
    <dc:date>2023-10-31T18:05:58Z</dc:date>
    <item>
      <title>function f(x)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343081#M26369</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way creating a line that shows a function like "f(x)=x²"? Optimal case is that I can set the start point e.g. at x=-3 and the end point at x=3 so I get the function in that area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 11:04:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343081#M26369</guid>
      <dc:creator>yakaic</dc:creator>
      <dc:date>2023-10-31T11:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: function f(x)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343393#M26370</link>
      <description>&lt;P&gt;You can make a lisp or create a script pleased to Excel to send a spline.&lt;/P&gt;
&lt;P&gt;The only thing is to determinate how many points you want&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The more you draw, the more precise you are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:02:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343393#M26370</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2023-10-31T13:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: function f(x)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343438#M26371</link>
      <description>&lt;P&gt;Check out this article about using Excel to create functions and then pasted in AutoCAD.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autodesk-community-voices/autocad-excel-your-design-with-a-graphing-cad-culator/ba-p/11868735" target="_blank"&gt;https://forums.autodesk.com/t5/autodesk-community-voices/autocad-excel-your-design-with-a-graphing-cad-culator/ba-p/11868735&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:15:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343438#M26371</guid>
      <dc:creator>TheCADnoob</dc:creator>
      <dc:date>2023-10-31T13:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: function f(x)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343456#M26372</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun c:fun1(/ *osmode* inter a b dis)  
  (setq inter 25 a -3 b 3
	dis(/(- b a)(float inter)))
  (setq *osmode*(getvar"osmode"))
  (setvar"osmode"0)
  (command "_pline"(list a (* a a)))
  (repeat inter(command(list(setq a(+ a dis))(* a a))))
  (command)
  (setvar"osmode"*osmode*)
  )&lt;/LI-CODE&gt;
&lt;P&gt;You can easily change inter, a and b.&lt;/P&gt;
&lt;P&gt;Load that and run FUN1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343456#M26372</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2023-10-31T13:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: function f(x)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343878#M26373</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2871725"&gt;@TheCADnoob&lt;/a&gt;&amp;nbsp;The link is a nice write up but the command parameters should specify&lt;U&gt; fit point&lt;/U&gt;s not not &lt;U&gt;control vertices&lt;/U&gt; since&amp;nbsp;the explicit function for sine is used.&lt;/P&gt;&lt;P&gt;That is,&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;spline m f 0,0&lt;/STRONG&gt;&amp;nbsp; not &lt;STRONG&gt;spline m cv 0,0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Also, when choosing the delta x value for something like a trig function it would be better if the minimum and maximum values were explicitly specified.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a side note, the attached Excel file includes a custom function I wrote for creating of B-splines from control vertices.&amp;nbsp; It will duplicate the splines created in AutoCAD if the weights of vertices are all 1.0 (a B-spline and not a NURBS).&amp;nbsp; The worksheet compares the accuracy of a degree 3&amp;nbsp; B-spline&amp;nbsp; (AutoCAD spline) for 180°with a true sine curve.&amp;nbsp; &amp;nbsp;Macros must be enabled for the Excel file&amp;nbsp;to use the custom Excel BSPLINE function.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_0-1698765117491.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1286354i751419B1BC332200/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_0-1698765117491.png" alt="leeminardi_0-1698765117491.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:16:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343878#M26373</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-10-31T15:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: function f(x)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343978#M26374</link>
      <description>&lt;P&gt;Perhaps &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/drawing-curves-from-equation/td-p/880632/highlight/true" target="_blank" rel="noopener"&gt;&amp;gt;this topic&amp;lt;&lt;/A&gt; may be of interest to you.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:42:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12343978#M26374</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-10-31T15:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: function f(x)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12344354#M26375</link>
      <description>&lt;P&gt;fantastic points&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 18:05:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/function-f-x/m-p/12344354#M26375</guid>
      <dc:creator>TheCADnoob</dc:creator>
      <dc:date>2023-10-31T18:05:58Z</dc:date>
    </item>
  </channel>
</rss>

