<?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) : File LISP</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : File LISP]]></description>
  <pubDate>Fri, 17 Apr 2026 00:21:36 +0000</pubDate>
  <lastBuildDate>Wed, 24 May 2023 14:29:18 +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=13848</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[File LISP :   SAGGIAAAA wrote:.... it should...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13848&amp;PID=38662&amp;title=file-lisp#38662</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> 13848<br /><strong>Posted:</strong> 24.May.2023 at 14:29<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by SAGGIAAAA" alt="Originally posted by SAGGIAAAA" style="vertical-align: text-bottom;" /> <strong>SAGGIAAAA wrote:</strong><br /><br />.... it should be placed on the "Defpoint" layer. ....<div><div></div></div></td></tr></table><div><br></div><div>The Layer name has an <font size="3" color="#ff0000" style=""><b>s</b></font> on the end, which may explain your problem &#091;I did not analyze other things -- there may be more issues&#093;.&nbsp; <b><font color="#ff0000">BUT DON'T USE THAT LAYER FOR THIS PURPOSE!</font></b>&nbsp; It has a special purpose in AutoCAD, and is not for Users to involve themselves with.&nbsp; The use of it for things to <i>not Plot</i> dates back to the days &#091;<i>very long ago</i> now&#093; when that was the <i>only</i> Layer that didn't Plot.&nbsp; But for many years now you can designate <i>any</i> Layer to not Plot.&nbsp; So make a non-Plotting Layer for the purpose, and give it a name that has some meaning in relation to what it's for.</div>]]>
   </description>
   <pubDate>Wed, 24 May 2023 14:29:18 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13848&amp;PID=38662&amp;title=file-lisp#38662</guid>
  </item> 
  <item>
   <title><![CDATA[File LISP : Hello, I wrote a .lsp code to...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13848&amp;PID=38661&amp;title=file-lisp#38661</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=934506">SAGGIAAAA</a><br /><strong>Subject:</strong> 13848<br /><strong>Posted:</strong> 24.May.2023 at 10:25<br /><br />Hello, I wrote a .lsp code to make my work easier, but unfortunately I'm unable to get it to work properly. Does anyone know how to resolve this? I'm attaching the code.<div><br><div>(defun c:ComandName(/ sel ss blk obj)</div><div>&nbsp; (defun ename-&gt;vla-object (ename)</div><div>&nbsp; &nbsp; (if (not (vlax-dump-object ename))</div><div>&nbsp; &nbsp; &nbsp; (vlax-ename-&gt;vla-object ename)</div><div>&nbsp; &nbsp; &nbsp; (vl-catch-all-error-p nil</div><div>&nbsp; &nbsp; &nbsp; &nbsp; (vl-catch-all-apply 'vla-get-object</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (list (vlax-ename-&gt;vla-object ename))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; )</div><div>&nbsp; &nbsp; &nbsp; )</div><div>&nbsp; &nbsp; )</div><div>&nbsp; )</div><div><br></div><div>&nbsp; (setq sel (ssget "_X" '((0 . "INSERT"))))</div><div>&nbsp; (if sel</div><div>&nbsp; &nbsp; (progn</div><div>&nbsp; &nbsp; &nbsp; (setq blk (ename-&gt;vla-object (ssname sel 0)))</div><div>&nbsp; &nbsp; &nbsp; (vla-put-layer blk "0")</div><div>&nbsp; &nbsp; &nbsp; (vla-put-color blk (vla-get-property blk 'Color))</div><div>&nbsp; &nbsp; &nbsp; (vla-put-linetype blk (vla-get-property blk 'Linetype))</div><div>&nbsp; &nbsp; &nbsp; (setq sel (ssget "_X" '((0 . "TEXT")) (list (cons 2 (strcat "\\A" "\\*U")))))</div><div>&nbsp; &nbsp; &nbsp; (if sel</div><div>&nbsp; &nbsp; &nbsp; &nbsp; (command "._CHPROP" sel "" "c" "" "Yellow" "")</div><div>&nbsp; &nbsp; &nbsp; )</div><div>&nbsp; &nbsp; &nbsp; (setq sel (ssget "_X" '((0 . "TEXT")) (list (cons 2 "A"))))</div><div>&nbsp; &nbsp; &nbsp; (if sel</div><div>&nbsp; &nbsp; &nbsp; &nbsp; (command "._CHPROP" sel "" "la" "" "Defpoint" "")</div><div>&nbsp; &nbsp; &nbsp; )</div><div>&nbsp; &nbsp; &nbsp; (setq sel (ssget "_X" '((0 . "POINT"))))</div><div>&nbsp; &nbsp; &nbsp; (if sel</div><div>&nbsp; &nbsp; &nbsp; &nbsp; (command "._CHPROP" sel "" "la" "" "Defpoint" "")</div><div>&nbsp; &nbsp; &nbsp; )</div><div>&nbsp; &nbsp; &nbsp; (command "SCALE" "All" "" "0,0" "1:1" "mm" "" "No" "")</div><div>&nbsp; &nbsp; &nbsp; (command "._EXPLODE" sel)</div><div>&nbsp; &nbsp; )</div><div>&nbsp; )</div><div>&nbsp; (princ)</div><div>)</div><div><br></div><div>The code must: open the selected block(s), move all objects to layer 0 with the color "DaBlocco," thickness "DaBlocco," and line type "DaBlocco." Then, select only the text/annotations within the block and set their color to yellow. If the text is an "A," it should be placed on the "Defpoint" layer. Additionally, select the points contained within the block and move them to the "Defpoint" layer. Finally, set the block's scale to "millimeters" and allow for exploding the block. As a final step, automatically close the block. All of this should be done without any action required from you except for activating the command after selecting the blocks to be edited.&nbsp;thanks to all who will help me.</div><div></div></div>]]>
   </description>
   <pubDate>Wed, 24 May 2023 10:25:51 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13848&amp;PID=38661&amp;title=file-lisp#38661</guid>
  </item> 
 </channel>
</rss>