<?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: modeling a mathematical shape in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6884861#M239532</link>
    <description>&lt;P&gt;You can use our 2DPLOT utility (see &lt;A href="http://www.cadstudio.cz/en/apps/2dplot/" target="_blank"&gt;http://www.cadstudio.cz/en/apps/2dplot/&lt;/A&gt;). You equation then should be expressed in cartesian space (X/Y) - in LISP:&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;; for range (0-1.5&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(defun fPolar1 (u / r tau alfa R0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;x = (* r (cos th))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;y = (* r (sin th))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq r u)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq tau 1.1) ; example&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq alfa 1.0) ; example&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq R0 0.1) ; example&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq th (* alfa (sin (/ (* pi (log (/ r R0))) (log tau))))) ; your expression&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(list (* r (cos th)) (* r (sin th))) ; return (X Y)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Then call (type):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;(2Dplot fPolar1 0.001 1.5 0.001)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;meaning - draw my function "fPolar1" from 0.001 to 1.5 (the radius), with ministeps of 0.001&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This procedure and the example gives something like that:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fpolar1.png" style="width: 627px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/323819iC3785924F7819538/image-size/large?v=v2&amp;amp;px=999" role="button" title="fpolar1.png" alt="fpolar1.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz" target="_blank"&gt;www.cadstudio.cz&lt;/A&gt; &amp;nbsp;&lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Fri, 17 Feb 2017 07:38:27 GMT</pubDate>
    <dc:creator>vladimir_michl</dc:creator>
    <dc:date>2017-02-17T07:38:27Z</dc:date>
    <item>
      <title>modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6880790#M239524</link>
      <description>&lt;P&gt;&lt;SPAN&gt;how can i model such a plot in autocad.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;this plot what created using a mathematical formula ,demostrated in mathlab.&lt;/DIV&gt;&lt;DIV&gt;thanks&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 262px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/323184i7FD899BA292846FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 576px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/323185iA1541EB2BB8AE225/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:56:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6880790#M239524</guid>
      <dc:creator>dim678</dc:creator>
      <dc:date>2017-02-15T20:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6882837#M239525</link>
      <description>&lt;P&gt;Welcome to these Forums!&amp;nbsp; [I saw this over at the CADFORUM.cz site.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post a link to the Mathlab web-page, so we can see what all the terms in that equation represent, and understand what the &lt;EM&gt;two&lt;/EM&gt; curves of different colors are about?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:38:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6882837#M239525</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-02-16T15:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6883804#M239526</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4471949"&gt;@dim678&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously AutoCAD is not a mathematics modeling package. However, if there is a set of data points or other properties that you can provide perhaps there is a way to create a model of some value. Do you have such a dataset and an example of the type of output for which you are looking?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:09:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6883804#M239526</guid>
      <dc:creator>john.vellek</dc:creator>
      <dc:date>2017-02-16T20:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6883925#M239527</link>
      <description>&lt;P&gt;the colors have no meaning its just a contour&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:51:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6883925#M239527</guid>
      <dc:creator>dim678</dc:creator>
      <dc:date>2017-02-16T20:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6883933#M239528</link>
      <description>&lt;P&gt;i have only the points of the contour&lt;/P&gt;&lt;P&gt;i would like to create a 3d of the shape with width og 1 mm&lt;/P&gt;&lt;P&gt;is there a way?&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:52:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6883933#M239528</guid>
      <dc:creator>dim678</dc:creator>
      <dc:date>2017-02-16T20:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6883956#M239529</link>
      <description>Can you post a link to the Mathlab web-page you are referencing?</description>
      <pubDate>Thu, 16 Feb 2017 21:03:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6883956#M239529</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2017-02-16T21:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6884719#M239530</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@yafimv wrote:&lt;BR /&gt;
&lt;P&gt;the colors have no meaning its just a contour&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But it's &lt;EM&gt;two&lt;/EM&gt; contours.&amp;nbsp; The &lt;EM&gt;colors&lt;/EM&gt; are not what I was wondering about, but &lt;EM&gt;why there are two of them&lt;/EM&gt;.&amp;nbsp; Do they represent running the same equation twice with different values for something in the equation?&amp;nbsp; I don't think they can both be part of&amp;nbsp;one result from the same equation.&amp;nbsp; I'm assuming the 'r' is the radius out from the origin.&amp;nbsp; As you step outward in small increments of 'r', you get different angle results [phi], and that's what's doing the sweeping back and forth.&amp;nbsp; But it looks like that equation would give only &lt;EM&gt;one&lt;/EM&gt; angle result for any value of 'r', but there's one location on &lt;EM&gt;each&lt;/EM&gt; of the two curves for any given radius.&amp;nbsp; They look like they might be exactly the same shape except for the greenish extension off the outer end of the brownish one, but maybe they're slightly different..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what's alpha?&amp;nbsp; What's R-sub-zero?&amp;nbsp; [The outermost radius limit?]&amp;nbsp; What's tau?&amp;nbsp; What's ln?&amp;nbsp;&amp;nbsp;That last one may just be mathematical terminology for some function I haven't encountered,&amp;nbsp;though it may be clear from the source, but the others look more definitely like variables you plug specific values into.&amp;nbsp; Presumably this shape is the result of a specific set of values for those, and with different values the resulting shape would be different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's why two of us have asked for a link to a web page, in hopes of answering these questions.&amp;nbsp; It might be comparatively simple to generate the same curve(s) in AutoCAD, along which you could Sweep or Extrude something, but not without those answers.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 05:39:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6884719#M239530</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-02-17T05:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6884765#M239531</link>
      <description>&lt;P&gt;Hello,answers to your question are as follows&amp;nbsp;&lt;BR /&gt;"&lt;SPAN&gt;Do they represent running the same equation twice with different values for something in the equation?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;each curve has a different formula but the input&amp;nbsp;values are the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"So what's alpha?&amp;nbsp; What's R-sub-zero?&amp;nbsp; [The outermost radius limit?]&amp;nbsp; What's tau?&amp;nbsp; What's ln?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ln is a logarithmic function , alpha and R &amp;nbsp;are just constants which i put in the formula,basickly"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically&lt;SPAN&gt;&amp;nbsp;i can get the polar coordinates of the contour,what should i do afterwards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 06:17:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6884765#M239531</guid>
      <dc:creator>dim678</dc:creator>
      <dc:date>2017-02-17T06:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6884861#M239532</link>
      <description>&lt;P&gt;You can use our 2DPLOT utility (see &lt;A href="http://www.cadstudio.cz/en/apps/2dplot/" target="_blank"&gt;http://www.cadstudio.cz/en/apps/2dplot/&lt;/A&gt;). You equation then should be expressed in cartesian space (X/Y) - in LISP:&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;; for range (0-1.5&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(defun fPolar1 (u / r tau alfa R0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;x = (* r (cos th))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;y = (* r (sin th))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq r u)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq tau 1.1) ; example&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq alfa 1.0) ; example&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq R0 0.1) ; example&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setq th (* alfa (sin (/ (* pi (log (/ r R0))) (log tau))))) ; your expression&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(list (* r (cos th)) (* r (sin th))) ; return (X Y)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Then call (type):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;(2Dplot fPolar1 0.001 1.5 0.001)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;meaning - draw my function "fPolar1" from 0.001 to 1.5 (the radius), with ministeps of 0.001&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This procedure and the example gives something like that:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fpolar1.png" style="width: 627px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/323819iC3785924F7819538/image-size/large?v=v2&amp;amp;px=999" role="button" title="fpolar1.png" alt="fpolar1.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz" target="_blank"&gt;www.cadstudio.cz&lt;/A&gt; &amp;nbsp;&lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Feb 2017 07:38:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6884861#M239532</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2017-02-17T07:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886507#M239533</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; wrote:&lt;/BLOCKQUOTE&gt;
&lt;P&gt;... What's ln?&amp;nbsp;&amp;nbsp;That last one may just be mathematical terminology for some function ....&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, duh on me -- the natural log [I don't have any use for them often enough to have recognized it at first].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since this is a fundamentally &lt;EM&gt;radially&lt;/EM&gt;-oriented operation, it seems to me it's overkill to do it with a function that &lt;EM&gt;converts&lt;/EM&gt; to X and Y coordinates. &amp;nbsp;It can more concisely be done with one that uses (polar):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun wavy (R0 inc alpha tau / r)
  (setq r 0)
  (setvar 'cmdecho 0)
  (command "_.spline" '(0 0 0))
  (repeat (fix (/ R0 inc))
    (command
      (polar
        '(0 0 0)
        (* alpha (sin (/ (* pi (log (/ (setq r (+ r inc)) R0))) (log tau))))
        r
      ); polar
    ); command
  ); repeat
  (command "" "" ""); conclude Spline
  (setvar 'cmdecho 1)
  (princ)
); defun&lt;/PRE&gt;
&lt;P&gt;That long line is the conversion of the formula into AutoLisp terminology. &amp;nbsp;'R0' is the outermost extent, 'inc' is the size of the stepping increment in radius between calculated points in the Spline. &amp;nbsp;This is the result of using that with these arguments:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(wavy 1.5 0.001 1.0 1.4)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and looks pretty similar to [one of the curves in] the image:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wavy.png" style="width: 390px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/324120i94FB441798EA9993/image-size/large?v=v2&amp;amp;px=999" role="button" title="wavy.png" alt="wavy.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I leave it to you to fine-tune the arguments to get a shape more precisely as you want it. &amp;nbsp;You can use a polar Array, or Copy it in place and Rotate one of them about 0,0, if you need two as in the original image.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:05:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886507#M239533</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-02-17T19:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886542#M239534</link>
      <description>&lt;P&gt;so after plotting this how can &amp;nbsp;created a shifted version by a certain angle and afterward to &amp;nbsp;add a width of 1 mm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:08:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886542#M239534</guid>
      <dc:creator>dim678</dc:creator>
      <dc:date>2017-02-17T19:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886569#M239535</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@yafimv wrote:&lt;BR /&gt;
&lt;P&gt;so after plotting this how can &amp;nbsp;created a shifted version by a certain angle and afterward to &amp;nbsp;add a width of 1 mm. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I edited my Reply, perhaps after you saw it, with a description of two ways&amp;nbsp;to get two of them. &amp;nbsp;If you want to apply &lt;EM&gt;width&lt;/EM&gt;, Splines can't do that, but Polylines can. &amp;nbsp;With as small a radius increment as I used, you probably wouldn't be able to tell the different in smoothness even if the Polyline is made up of only line segments. &amp;nbsp;Change this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command "_.&lt;FONT color="#FF0000"&gt;spline&lt;/FONT&gt;" '(0 0 0))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command "_.&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;pline&lt;/STRONG&gt;&lt;/FONT&gt;" '(0 0 0))&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;and this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(command "" &lt;FONT color="#FF0000"&gt;"" ""&lt;/FONT&gt;); conclude &lt;FONT color="#FF0000"&gt;Spline&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command ""); conclude &lt;FONT color="#0000FF"&gt;Pline&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;If you use a larger increment / fewer segments, you could use PEDIT on the resulting Polyline, and its Spline-curve option, to smooth out the curvature, and it would still be able to have width.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886569#M239535</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-02-17T19:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886848#M239536</link>
      <description>&lt;P&gt;i have inserted the following code &amp;nbsp;and saved .&lt;/P&gt;&lt;P&gt;when i loaded it and wrote the name of the file ,it said unknown command,&lt;/P&gt;&lt;P&gt;what am i missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 679px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/324168i91BA7BE2CE7EBCAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 21:21:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886848#M239536</guid>
      <dc:creator>dim678</dc:creator>
      <dc:date>2017-02-17T21:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886991#M239537</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@yafimv wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;when i loaded it and wrote the name of the file ,it said unknown command,&lt;/P&gt;
&lt;P&gt;what am i missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
....&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's not a &lt;EM&gt;command&lt;/EM&gt; definition, it's a &lt;EM&gt;function with arguments&lt;/EM&gt;. &amp;nbsp;You use it as in Post 10, &lt;EM&gt;in parentheses&lt;/EM&gt; with the arguments included.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you prefer, it could be altered easily to make it a command, which would &lt;EM&gt;prompt the User&lt;/EM&gt; for the values, so that you don't have to define a &lt;EM&gt;different&lt;/EM&gt; command for every set of values you might ever want [that's why I did it in the function-with-arguments approach -- it's much easier to use with different values, so you can tweak them to get the best result].&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 22:21:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6886991#M239537</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-02-17T22:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6887459#M239538</link>
      <description>&lt;P&gt;i am trying to see where to go in the interface of auto cad to run this function(attached the photos of the CAD menu bellow),could where in the menus to go?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2017 09:07:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6887459#M239538</guid>
      <dc:creator>dim678</dc:creator>
      <dc:date>2017-02-18T09:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6887460#M239539</link>
      <description>&lt;P&gt;Hello Vladimir, could you say in what menu should(photo attached bellow) i go in order to run this fntion,&lt;/P&gt;&lt;P&gt;because i went to "Visual LISP editor" and saved the code as a lisp file and load it&lt;/P&gt;&lt;P&gt;but when i run the file name ,it say that its not recognized.&lt;/P&gt;&lt;P&gt;if you could help we with running it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2017 09:08:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6887460#M239539</guid>
      <dc:creator>dim678</dc:creator>
      <dc:date>2017-02-18T09:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6887623#M239540</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@yafimv wrote:&lt;BR /&gt;
&lt;P&gt;i am trying to see where to go in the interface of auto cad to run this function....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Save the code to a .lsp file in some known location [it looks like you have already done that].&amp;nbsp; Type APPLOAD, navigate to that file, and Load it.&amp;nbsp; Use it as shown before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want it to be loaded automatically in &lt;EM&gt;every drawing&lt;/EM&gt; you open, add a line like this to your acaddoc.lsp file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(load "&lt;EM&gt;&lt;FONT color="#00ccff"&gt;YourFileName&lt;/FONT&gt;&lt;/EM&gt;")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[you don't need to include the .lsp filetype ending, but you can if you want to].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you &lt;EM&gt;don't have&lt;/EM&gt; an acaddoc.lsp file yet, make one, even if that's the only thing in it, and put it in some location that's in the Support File Search Path list in the Files tab in OPTIONS.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2017 13:02:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6887623#M239540</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-02-18T13:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: modeling a mathematical shape</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6887632#M239541</link>
      <description>&lt;P&gt;You don't have to bother with the VisualLISP editor. Just take the supplied code and copy it (Ctrl+C/Ctrl+V) to your AutoCAD command line or save it to a .LSP file, edit (e.g. in Notepad) it as neccessary and load it into AutoCAD with the APPLOAD command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 2DPlot utility makes LWPOLYLINEs so you can add width easily by changing the Lightweight property in the polyline properties (Ctrl+1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also spice up the output by superimposing the resulting shape on an automatically generated radial grid from another freeware add-on - the DrGrid utility - see &lt;A href="http://www.cadforum.cz/cadforum_en/drgrid-parametric-grid-for-autocad-drawings-tip9829" target="_blank"&gt;http://www.cadforum.cz/cadforum_en/drgrid-parametric-grid-for-autocad-drawings-tip9829&lt;/A&gt; - like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drgrid.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/324273i5645CEF0F8CF0B82/image-size/large?v=v2&amp;amp;px=999" role="button" title="drgrid.png" alt="drgrid.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz" target="_blank"&gt;www.cadstudio.cz&lt;/A&gt; &amp;nbsp;&lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2017 13:07:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/modeling-a-mathematical-shape/m-p/6887632#M239541</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2017-02-18T13:07:31Z</dc:date>
    </item>
  </channel>
</rss>

