<?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) : Help With Lisp</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : Help With Lisp]]></description>
  <pubDate>Mon, 25 May 2026 17:16:58 +0000</pubDate>
  <lastBuildDate>Thu, 14 Aug 2014 16:16:53 +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=10621</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[Help With Lisp :  Great! I am glad it works for...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27886&amp;title=help-with-lisp#27886</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> 10621<br /><strong>Posted:</strong> 14.Aug.2014 at 16:16<br /><br />Great! I am glad it works for you.<div>&nbsp;</div><div>The {CODE} section is inserted using BBcodes - see the help link here under the Message posting editor.</div>]]>
   </description>
   <pubDate>Thu, 14 Aug 2014 16:16:53 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27886&amp;title=help-with-lisp#27886</guid>
  </item> 
  <item>
   <title><![CDATA[Help With Lisp : I solved this with help from Vladimir....]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27885&amp;title=help-with-lisp#27885</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10621<br /><strong>Posted:</strong> 14.Aug.2014 at 16:09<br /><br /><font size="2">I solved this with help from Vladimir. Instead of using: </font><br><pre ="bbcode"="">(2 . "MYBLOCKNAME")</pre><font size="2">I used this:</font><br><pre ="bbcode"="">(8 . "LAYERNAME")</pre><font size="2">I simply put the block that I was extracting the attribute from on its own layer called "QSP".<br>Thank you again, you pointed me in the right direction! </font><img src="https://www.cadforum.cz/forum_en/smileys/smiley4.gif" border="0" alt="Big smile" title="Big smile" /><br>]]>
   </description>
   <pubDate>Thu, 14 Aug 2014 16:09:08 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27885&amp;title=help-with-lisp#27885</guid>
  </item> 
  <item>
   <title><![CDATA[Help With Lisp : Thank you for the quick reply!...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27881&amp;title=help-with-lisp#27881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10621<br /><strong>Posted:</strong> 13.Aug.2014 at 20:52<br /><br /><font size="2">Thank you for the quick reply! <img src="https://www.cadforum.cz/forum_en/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /><br><br>Unfortunately this did not seem to work. When I run the command it returns "nil". If you need any other information let me know. </font><br><br><font size="2">Also, how did you get the dotted lines for the code...just for future reference. I know this is a dumb question, but I'm new to forums. Thanks.</font><br>]]>
   </description>
   <pubDate>Wed, 13 Aug 2014 20:52:26 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27881&amp;title=help-with-lisp#27881</guid>
  </item> 
  <item>
   <title><![CDATA[Help With Lisp :  Try to replace the lines: (if...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27879&amp;title=help-with-lisp#27879</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> 10621<br /><strong>Posted:</strong> 13.Aug.2014 at 20:34<br /><br />Try to replace the lines:<div>&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode">(if (setq ent(entsel "\n Select a Block: "))</div><div>(progn</div><div>(setq en(car ent))&nbsp;&nbsp;</pre></td></tr></table></div><div>&nbsp;</div><div>with:</div><div>&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode">(if (setq ss (ssget&nbsp;"_X"&nbsp;'((0 . "INSERT")(2 . "MYBLOCKNAME"))))</div><div>(progn&nbsp;&nbsp; </div><div>(setq en (ssname ss 0))</pre></td></tr></table></div>]]>
   </description>
   <pubDate>Wed, 13 Aug 2014 20:34:42 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27879&amp;title=help-with-lisp#27879</guid>
  </item> 
  <item>
   <title><![CDATA[Help With Lisp : Hello everyone!I found some code...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27878&amp;title=help-with-lisp#27878</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10621<br /><strong>Posted:</strong> 13.Aug.2014 at 20:23<br /><br /><font size="2">Hello everyone!<br><br>I found some code (lisp) that will return a variable with the attribute value of a block. Everything works great, the block only has one attribute so it does not cause complications in this rather simple code. My problem is with the user input portion. After the code lisp is initiated, AutoCAD asks me to select the block I wish to extract the attribute value form. Ideally I would like this to happen automatically. I want the lisp to always check the same exact block that will be located in the same exact spot. If anyone knows a way please let me know! I have been working on this for way too long. Here is the lisp:<br><br><b>(defun C:get_att_now ()<br><br></b></font><font size="2"><b><font face="Courier" size="3">(if (setq ent(entsel "\n Select a Block: "))</font><br><br>(progn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp; (setq en(car ent))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp; (setq enlist(entget en))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp; (setq blkType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2(entget en2))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<br><br>&nbsp;&nbsp;&nbsp;&nbsp; )<br><br>&nbsp;&nbsp;&nbsp; )&nbsp; <br>&nbsp;&nbsp; )<br><br>&nbsp; )&nbsp;&nbsp; <br><br>)<br><br>)&nbsp;&nbsp; <br><br>)<br></b><br><br>Note: This is the code that causes user input...<br><br></font><font size="2"><b><font face="Courier" size="3">(if (setq ent(entsel "\n Select a Block: "))</font></b></font><br><font size="2"><br>I have tried the "ssget" function, but haven't had any luck. Please help! </font><br>]]>
   </description>
   <pubDate>Wed, 13 Aug 2014 20:23:02 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10621&amp;PID=27878&amp;title=help-with-lisp#27878</guid>
  </item> 
 </channel>
</rss>