<?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) : Polygcode.lsp</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : Polygcode.lsp]]></description>
  <pubDate>Sun, 31 May 2026 23:00:26 +0000</pubDate>
  <lastBuildDate>Mon, 10 Oct 2022 21:43:34 +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=13765</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[Polygcode.lsp : Thanks for the help.I am not a...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13765&amp;PID=38417&amp;title=polygcodelsp#38417</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=916179">r.b.hughes</a><br /><strong>Subject:</strong> 13765<br /><strong>Posted:</strong> 10.Oct.2022 at 21:43<br /><br /><div>Thanks for the help.<br></div><div><br></div><div>I am not a LISP user. My mistake was not putting "cadr PT1" in brackets.<br></div>]]>
   </description>
   <pubDate>Mon, 10 Oct 2022 21:43:34 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13765&amp;PID=38417&amp;title=polygcodelsp#38417</guid>
  </item> 
  <item>
   <title><![CDATA[Polygcode.lsp : Very basic AutoLisp multiplication:....(princ...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13765&amp;PID=38416&amp;title=polygcodelsp#38416</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=353260">Kent Cooper</a><br /><strong>Subject:</strong> 13765<br /><strong>Posted:</strong> 10.Oct.2022 at 14:23<br /><br />Very basic AutoLisp multiplication:<div>....</div><div><span style="font-size: small; : rgb251, 251, 253;"><font color="#36455a">(princ (strcat "\n" "X" (rtos </font><b style=""><font color="#0000ff">(* </font></b><font color="#36455a">(cadr PT1) </font><font color="#0000ff"><b>2)</b></font><font color="#36455a"> 2 __PV_DP) __PV_Delimiter</font></span></div><div><span style="color: rgb54, 69, 90; font-size: small; : rgb251, 251, 253;">....</span></div>]]>
   </description>
   <pubDate>Mon, 10 Oct 2022 14:23:29 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13765&amp;PID=38416&amp;title=polygcodelsp#38416</guid>
  </item> 
  <item>
   <title><![CDATA[Polygcode.lsp : I have been using this .lsp file...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13765&amp;PID=38415&amp;title=polygcodelsp#38415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=916179">r.b.hughes</a><br /><strong>Subject:</strong> 13765<br /><strong>Posted:</strong> 07.Oct.2022 at 17:59<br /><br /><div>I have been using this .lsp file (downloaded from this site) for students to extract XYZ coordinates to be used in a CNC.program. I am trying to adapt the program to extract XZ coordinates for programs for a CNC lathe. The problem I am having is that the X values I get are radius, and I need diameter. I have not been able to find out how to multiply the polyline point value by 2.</div><div><br></div><div>Here is a clip of the section of the script</div><div><br></div><div>&nbsp;&nbsp; (foreach PT1 listCOORDINATES ;all vertices<br>&nbsp;&nbsp;&nbsp; (princ (strcat "\n" "X" (rtos (cadr PT1) 2 __PV_DP) __PV_Delimiter<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "Z" (rtos (car PT1) 2 __PV_DP) )) ; display XY</div><div><br></div><div>For simplicity, the Y coordinate (cadr) is the X axis, and the X coordinate (car) is the Z axis.</div><div><br></div><div>I need the value of the Y coordinate to be multiplied by 2. Can anyone suggest how to do this?</div><div><br></div><div>Many thanks.<br></div>]]>
   </description>
   <pubDate>Fri, 07 Oct 2022 17:59:13 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13765&amp;PID=38415&amp;title=polygcodelsp#38415</guid>
  </item> 
 </channel>
</rss>