<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>CAD Forum discussion (EN) : running a function in autocad</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : running a function in autocad]]></description>
  <pubDate>Sun, 31 May 2026 23:05:43 +0000</pubDate>
  <lastBuildDate>Sat, 18 Feb 2017 16:55:38 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum_en/RSS_post_feed.asp?TID=12223</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD Forum discussion (EN)]]></title>
   <url>https://www.cadforum.cz/forum_en/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum_en/</link>
  </image>
  <item>
   <title><![CDATA[running a function in autocad :  The name of the LISP function...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12223&amp;PID=34336&amp;title=running-a-function-in-autocad#34336</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=3">Vladimir Michl</a><br /><strong>Subject:</strong> 12223<br /><strong>Posted:</strong> 18.Feb.2017 at 16:55<br /><br />The name of the LISP function is "curve" so you can invoke it by typing the "(curve)" command - note the parenthesis.<div>&nbsp;</div><div>If you want to make it a custom command (invoked by name), defun it as "C:Curve" - i.e.:</div><div>&nbsp;</div><div>(defun C:Curve ( ....</div>]]>
   </description>
   <pubDate>Sat, 18 Feb 2017 16:55:38 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12223&amp;PID=34336&amp;title=running-a-function-in-autocad#34336</guid>
  </item> 
  <item>
   <title><![CDATA[running a function in autocad : Hello, i have tried to save the...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12223&amp;PID=34331&amp;title=running-a-function-in-autocad#34331</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=707415">Frank98</a><br /><strong>Subject:</strong> 12223<br /><strong>Posted:</strong> 18.Feb.2017 at 10:53<br /><br /><div><br></div><div>Hello, i have tried to save the code bellow as a lisp, the i loaeded it and in the vommand line i wrote the name of the lisp file and nohing happened,if you could help me understand how &nbsp;run function in outocad ,i have attache my cad menu in the photo bellow</div><div><br></div><div>thanks</div><div><br></div><div><img src="uploads/707415/Capture3.JPG" height="688" width="1033" border="0" /><br></div><div><br></div><div><br></div><div><div>(defun curve ()</div><div>&nbsp;(prompt "Routine to draw the basic sinuous curve ") (terpri)</div><div>&nbsp;(setq start (getpoint "Pick the start point ")) (terpri)</div><div>&nbsp;(setq rl (getreal "Enter the minimum radius ")) (terpri)</div><div>&nbsp;(setq r2 (getreal "Enter the maximum radius ")) (terpri)</div><div>&nbsp;(setq s (getreal "Enter the incremental step ")) (terpri)</div><div>&nbsp;(setq tau (getreal "Enter the value of tau ")) (terpri)</div><div>&nbsp; &nbsp; (while (&lt; rl (- r2 s))</div><div>&nbsp; &nbsp; &nbsp;(setq fl (* (/ pi 4) (sin (* pi (/ (log (/ rl r2)) (log tau))))))</div><div>&nbsp; &nbsp; &nbsp;(setq x 1 (+ (* rl (cos fl)) (car start)))</div><div>&nbsp; &nbsp; &nbsp;(setq yl (+ (* rl (sin fl)) (cadr start)))</div><div>&nbsp; &nbsp; &nbsp;(setq rl (+ rl s))</div><div>&nbsp; &nbsp; &nbsp;(setq f2 (* (/ pi 4) (sin (* pi (/ (log (I r 1 r2)) (log tau))))))</div><div>&nbsp; &nbsp; &nbsp;(setq x2 (+ (* rl (cos f2)) (car start)))</div><div>&nbsp; &nbsp; &nbsp;(setq y2 (+ (* rl (sin f2)) (cadr start)))</div><div>&nbsp; &nbsp; &nbsp; (command "line"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; (setq p (list xl y1))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; (setq p (list x2 y2))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ""</div><div>&nbsp; &nbsp; &nbsp; &nbsp;)</div><div>&nbsp; &nbsp; &nbsp; )</div><div>)</div></div>]]>
   </description>
   <pubDate>Sat, 18 Feb 2017 10:53:10 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12223&amp;PID=34331&amp;title=running-a-function-in-autocad#34331</guid>
  </item> 
 </channel>
</rss>