<?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) : Getpolar function</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : Getpolar function]]></description>
  <pubDate>Thu, 03 Sep 2026 08:15:00 +0000</pubDate>
  <lastBuildDate>Mon, 22 Feb 2016 20:36:16 +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=11655</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[Getpolar function : Hello to everybody,I&amp;#039;d like...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11655&amp;PID=31348&amp;title=getpolar-function#31348</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=625077">lucasugar</a><br /><strong>Subject:</strong> 11655<br /><strong>Posted:</strong> 22.Feb.2016 at 20:36<br /><br />Hello to everybody,<div>I'd like to create a lisp function which waits for the user to specify a point which lies on a straight line passing through a specified point and inclined of a specified angle. It's not difficult to code but the function must show a rubber-line which moves only along the specified angle.</div><div>I already coded such a function. Here it is:</div><div><br></div><div>(defun getpolar (pt ang msg / r)</div><div>&nbsp; (vl-cmdf "_line" pt (strcat "&lt;" (angtos ang (getvar "AUNITS"))))</div><div>&nbsp; (prompt msg)</div><div>&nbsp; (command pause)</div><div>&nbsp; (command)</div><div>&nbsp; (setq r (getvar "LASTPOINT"))</div><div>&nbsp; (entdel (entlast))</div><div>&nbsp; (polarp pt ang (* (distance r pt) (cos (- (angle pt r) ang))))</div><div>)</div><div><br></div><div>Try it like this:</div><div><br></div><div>(getpolar '(0 0 0) 30 "Specifiy end point: ")</div><div><br></div><div><br></div><div>But I want the function not to create a line entity and then delete it.</div><div><br></div><div>Is there a simpler way?</div><div><br></div><div>For example, if from command-line I enter:</div><div><br></div><div>(getpoint '(0 0 0) "Specifiy end point: ")</div><div><br></div><div>and then:</div><div><br></div><div>&lt;45</div><div><br></div><div>a rubber-line which moves only along an angle of 45Â° appears.</div><div><br></div><div>But how do I put it in a lisp function?</div><div><br></div><div>Thanks to all.</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 22 Feb 2016 20:36:16 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11655&amp;PID=31348&amp;title=getpolar-function#31348</guid>
  </item> 
 </channel>
</rss>