<?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) : LISP Error</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : LISP Error]]></description>
  <pubDate>Tue, 21 Apr 2026 23:46:57 +0000</pubDate>
  <lastBuildDate>Tue, 01 Mar 2011 22:04:26 +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=5351</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[LISP Error : CarlB,  This is the solution....]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13627&amp;title=lisp-error#13627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=164791">kameron1967</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 01.Mar.2011 at 22:04<br /><br />CarlB,<DIV>&nbsp;</DIV><DIV>This is the solution.&nbsp; In addition to the code shown below, the lineweight needs to be 13 instead of 0.13.</DIV><DIV>&nbsp;</DIV><DIV>Thanks though for your valuable help.&nbsp; I really appreciate your help in this.</DIV><DIV>&nbsp;</DIV><DIV>&#091;code&#093;</DIV><DIV>&nbsp;</DIV><DIV>(setq<BR>LyrEdata (entget (tblobjname "Layer" ObjLayer))<BR>LyrWeight (cdr (assoc 370 LyrEdata))<BR>)<BR>((= LyrSuffix "X") (setq NewLyrName (strcat ObjLayer "-X-PKG-1")) <BR>(setq LyrLtype "PHANTOM") (setq LyrColor "8") (setq LyrWeight 53)) ) </DIV><DIV><BR>(command "-Layer" "_M" NewLyrname "_C" LyrColor "" "_L" LyrLtype "" "LW" (if (= LyrWeight -3) "D" (/ LyrWeight 100.0)) "" "")<BR>(princ)<BR>)<BR>(princ "\n&lt;!&gt; Type {LAX} and choose your layer modifier &lt;!&gt;") </DIV>]]>
   </description>
   <pubDate>Tue, 01 Mar 2011 22:04:26 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13627&amp;title=lisp-error#13627</guid>
  </item> 
  <item>
   <title><![CDATA[LISP Error : Your idea is sound, extracting...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13611&amp;title=lisp-error#13611</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=73469">CarlB</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 01.Mar.2011 at 07:44<br /><br />Your idea is sound, extracting default data, overriding it later if desired. Since i don't have AutoCADd to check, not sure the 370 code &amp; tblsearch will give you lineweight, or if so will be the correct format to feed back to the "layer" command. You can give me an update on that :) <DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">(defun C:NEWL ();R-1, R-2 to reproduce layer settings 2/23/11<BR>&nbsp;&nbsp; (setq PickItem (car (entsel "\nPick object for new layer: ")));R-1<BR>&nbsp;&nbsp; (setq Entdata (entget pickItem))&nbsp;&nbsp; (setq ObjLayer (cdr (assoc 8 EntData)));R-1<BR>&nbsp;&nbsp; (setq ObjType (cdr (assoc 0 EntData)));R-1&nbsp;&nbsp; (princ (strcat ObjLayer " is layer name of " ObjType " selected"));R-1<BR>&nbsp;&nbsp; (setq Lyrdata (tblsearch "LAYER" ObjLayer));R-2<BR>&nbsp;&nbsp; (setq LyrLtype (cdr (assoc 6 Lyrdata)));R-2<BR>&nbsp;&nbsp; (setq LyrColor (cdr (assoc 62 Lyrdata)));R-2<BR>&nbsp;&nbsp; (setq LyrWeight (cdr (assoc 370 Lyrdata)));;R-3<BR>&nbsp;&nbsp; (initget "N D V X");R-1<BR>&nbsp;&nbsp; (setq LyrSuffix (getkword "\nEnter suffix type &#091;N-PKG-1/D-PKG1/V-PKG-1/X-PKG-1&#093;:"));R-1<BR>&nbsp;&nbsp; (cond<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "N")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq NewLyrName (strcat ObjLayer "-N-PKG-1"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "D")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq NewLyrName (strcat ObjLayer "-D-PKG-1"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "V")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq NewLyrName (strcat ObjLayer "-V-PKG-1"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "X");;R-3<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq NewLyrName (strcat ObjLayer "-X-PKG-1"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq LyrLtype "PHANTOM")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq LyrColor "8")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq LyrWeight "0.13")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp; )<BR>&nbsp;&nbsp; (command "._Layer" "_M" NewLyrname "_C" LyrColor "" "_L" LyrLtype "_LW" LyrWeight "" "");R-2&amp;3<BR>&nbsp;&nbsp; (princ)<BR>)</pre></td></tr></table></DIV><span style="font-size:10px"><br /><br />Edited by CarlB - 01.Mar.2011 at 07:44</span>]]>
   </description>
   <pubDate>Tue, 01 Mar 2011 07:44:11 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13611&amp;title=lisp-error#13611</guid>
  </item> 
  <item>
   <title><![CDATA[LISP Error : CarlB - there are some layers...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13608&amp;title=lisp-error#13608</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=164791">kameron1967</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 28.Feb.2011 at 21:07<br /><br />CarlB - there are some layers that require different lineweight to be defined, where the rest uses whatever was assigned in the original layer.&nbsp; I thought if I just set the variable for the lineweight on the layer table, it will default to that, unless I specified it&nbsp;as shown&nbsp;below: <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>(setq Lyrdata (tblsearch "LAYER" ObjLayer));R-2&nbsp;&nbsp; <BR>(setq LyrLtype (cdr (assoc 6 Lyrdata)));R-2&nbsp;&nbsp; <BR>(setq LyrColor (cdr (assoc 62 Lyrdata)));R-2&nbsp;&nbsp; <BR>(setq Lyrweight (cdr (assoc&nbsp;370 Lyrdata)));R-2&nbsp;&nbsp; (LINEWEIGHT)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "X")<BR>(setq LyrLtype "sphantom")<BR>(setq LyrColor "8")<BR>(setq Lyrweight "0.13")<BR>&nbsp;(strcat ObjLayer "-X-D1C1270" ));R-3</DIV><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );R-2</P><P>&nbsp;&nbsp;&nbsp; );R-1</P><P>(command "-Layer" "_M" NewLyrname "_C" LyrColor "" "_L" LyrLtype "_lw" Lyrweight "" "");R-2&nbsp;&nbsp; ADDED LINEWEIGHT HERE AS WELL</P><span style="font-size:10px"><br /><br />Edited by kameron1967 - 01.Mar.2011 at 00:23</span>]]>
   </description>
   <pubDate>Mon, 28 Feb 2011 21:07:57 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13608&amp;title=lisp-error#13608</guid>
  </item> 
  <item>
   <title><![CDATA[LISP Error : I think we have more to work out... I...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13607&amp;title=lisp-error#13607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=73469">CarlB</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 28.Feb.2011 at 21:03<br /><br /><P>I think we have more to work out...</P><DIV>I had thought you were just assigning a lineweight to a layer with this code, so the variable name could be whatever you want to call it, then that same variable name would be used later in the command to define the new layer:</DIV><DIV>(command ".-layer" etc.... "_LW" lyrweight etc...)</DIV><DIV>&nbsp;</DIV><DIV>It you want to assign the same layer weight as object layer selected, will need some other steps...</DIV>]]>
   </description>
   <pubDate>Mon, 28 Feb 2011 21:03:13 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13607&amp;title=lisp-error#13607</guid>
  </item> 
  <item>
   <title><![CDATA[LISP Error : Thanks, CarlB. I was trying so...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13606&amp;title=lisp-error#13606</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=164791">kameron1967</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 28.Feb.2011 at 20:34<br /><br />Thanks, CarlB.&nbsp; I was trying so hard to find the LYRweight variable.&nbsp; I tried LYRLW, LYRLWEIGHT, but couldn't get it to work.&nbsp; I kind of makes sense for the variable to be called LYRweight, but I would never have guessed it.&nbsp; Once again, you're my savior! <DIV>&nbsp;</DIV><DIV>One last question:&nbsp; What is the lyrweight number?&nbsp; I never know where to find this info (see below).&nbsp; Thanks.</DIV><DIV>&nbsp;</DIV><DIV>(setq Lyrdata (tblsearch "LAYER" ObjLayer));R-2&nbsp;&nbsp; <BR>(setq LyrLtype (cdr (assoc 6 Lyrdata)));R-2&nbsp;&nbsp; <BR>(setq LyrColor (cdr (assoc 62 Lyrdata)));R-2&nbsp;&nbsp; </DIV><DIV><BR>(setq Lyrweight (cdr (assoc&nbsp;?? Lyrdata)));R-2&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV><img src="http://www.cadforum.cz/forum_en/smileys/smiley4.gif" height="17" width="17" border="0" align="absmiddle" alt="Big%20smile" /> </DIV><span style="font-size:10px"><br /><br />Edited by kameron1967 - 28.Feb.2011 at 21:02</span>]]>
   </description>
   <pubDate>Mon, 28 Feb 2011 20:34:07 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13606&amp;title=lisp-error#13606</guid>
  </item> 
  <item>
   <title><![CDATA[LISP Error : Well the &amp;#039;cond&amp;#039; was...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13604&amp;title=lisp-error#13604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=73469">CarlB</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 28.Feb.2011 at 20:02<br /><br />Well the 'cond' was a subfunction of a 'setq layer' so you should rearrange like below to add more 'setqs' to the cond:<DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV>(cond</DIV><DIV>&nbsp; ((= LyrSuffix "A")</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; (setq xxxlayer (strcat ObjLayer "-A-D1C1270" ))</DIV><DIV>&nbsp;&nbsp; &nbsp;(setq lyrcolor "1")</DIV><DIV>&nbsp;&nbsp; (setq lyrltype "continuous")<BR>&nbsp;&nbsp; (setq lyrweight "0.25")<BR>);R-3</DIV><DIV>&nbsp;</DIV><DIV>-or shorter versio-</DIV><DIV>&nbsp;</DIV><DIV><DIV>(cond</DIV><DIV>&nbsp; ((= LyrSuffix "A")</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; (setq xxxlayer (strcat ObjLayer "-A-D1C1270" )</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;lyrcolor "1"</DIV><DIV>&nbsp;&nbsp;&nbsp; lyrltype "continuous"<BR>&nbsp;&nbsp; lyrweight "0.25"<BR>);R-3</DIV></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 28 Feb 2011 20:02:24 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13604&amp;title=lisp-error#13604</guid>
  </item> 
  <item>
   <title><![CDATA[LISP Error : CarlB,   Sorry to keep bothering...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13602&amp;title=lisp-error#13602</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=164791">kameron1967</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 28.Feb.2011 at 19:06<br /><br />CarlB, <DIV>&nbsp;</DIV><DIV>Sorry to keep bothering you.&nbsp; But if I wanted to also include lineweight, but have the ability to modify each aspect of the layer color, linetype and lineweight within the selected suffix - for instance D, can I specify the layer information within the parenthesis?&nbsp; See below.&nbsp; Thanks.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "A") </DIV><DIV>(setq LyrLtype "sphantom")<BR>(setq LyrColor "1")<BR>;(setq LyrLw "0.25") - what's the variable for lineweight?</DIV><DIV>(strcat ObjLayer "-A-D1C1270" ))</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by kameron1967 - 28.Feb.2011 at 20:13</span>]]>
   </description>
   <pubDate>Mon, 28 Feb 2011 19:06:06 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13602&amp;title=lisp-error#13602</guid>
  </item> 
  <item>
   <title><![CDATA[LISP Error : Revised to take on layer color...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13525&amp;title=lisp-error#13525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=73469">CarlB</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 23.Feb.2011 at 19:50<br /><br />Revised to take on layer color &amp; linetype. no checking for locked status, etc.&nbsp; Enjoy!<DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">(defun C:NEWL ();R-1, R-2 to reproduce layer settings 2/23/11<BR>&nbsp;&nbsp; (setq PickItem (car (entsel "\nPick object for new layer: ")));R-1<BR>&nbsp;&nbsp; (setq Entdata (entget pickItem))<BR>&nbsp;&nbsp; (setq ObjLayer (cdr (assoc 8 EntData)));R-1<BR>&nbsp;&nbsp; (setq ObjType (cdr (assoc 0 EntData)));R-1<BR>&nbsp;&nbsp; (princ (strcat ObjLayer " is layer name of " ObjType " selected"));R-1<BR>&nbsp;&nbsp; (setq Lyrdata (tblsearch "LAYER" ObjLayer));R-2<BR>&nbsp;&nbsp; (setq LyrLtype (cdr (assoc 6 Lyrdata)));R-2<BR>&nbsp;&nbsp; (setq LyrColor (cdr (assoc 62 Lyrdata)));R-2<BR>&nbsp;&nbsp; (initget "N D V");R-1<BR>&nbsp;&nbsp; (Setq LyrSuffix (getkword "\nEnter suffix type &#091;N-PKG-1/D-PKG1/V-PKG-1&#093;:"));R-1<BR>&nbsp;&nbsp; (setq NewLyrName<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (cond<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "N") (strcat ObjLayer "-N-PKG-1" )) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "D") (strcat ObjLayer "-D-PKG-1"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "V") (strcat ObjLayer "-V-PKG-1"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp; )<BR>&nbsp;&nbsp; (command "._Layer" "_M" NewLyrname "_C" LyrColor "" "_L" LyrLtype "" "");R-2<BR>&nbsp;&nbsp; (princ)<BR>)</pre></td></tr></table></DIV>]]>
   </description>
   <pubDate>Wed, 23 Feb 2011 19:50:23 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13525&amp;title=lisp-error#13525</guid>
  </item> 
  <item>
   <title><![CDATA[LISP Error : CarlB - is there a way to make...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13522&amp;title=lisp-error#13522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=164791">kameron1967</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 23.Feb.2011 at 17:48<br /><br /><DIV>CarlB - is there a way to make it so that the newly created layer of the entity that we selected retains that same layer information as the one entity that we selected?&nbsp; As of right now, it creates a new layer, but with default color and linetype.&nbsp; If we can specify the linetype and color associated to each modifier, that would work also.&nbsp; Thanks.</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by CarlB" alt="Originally posted by CarlB" style="vertical-align: text-bottom;" /> <strong>CarlB wrote:</strong><br /><br />OK since my name was mentioned..here's my take at a simple lisp.. </DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>(defun C:NEWL ();R-1<BR>&nbsp;&nbsp; (setq PickItem (car (entsel "\nPick object for new layer: ")));R-1<BR>&nbsp;&nbsp; (setq ObjLayer (cdr (assoc 8 (entget pickItem))));R-1<BR>&nbsp;&nbsp; (setq ObjType (cdr (assoc 0 (entget pickItem))));R-1<BR>&nbsp;&nbsp; (princ (strcat ObjLayer " is layer name of " ObjType " selected"));R-1<BR>&nbsp;&nbsp; (initget "N D V");R-1<BR>&nbsp;&nbsp; (Setq LyrSuffix (getkword "\nEnter suffix type &#091;N-PKG-1/D-PKG1/V-PKG-1&#093;:"));R-1<BR>&nbsp;&nbsp; (setq NewLyrName<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (cond <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "N") (strcat ObjLayer "-N-PKG-1" ))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "D") (strcat ObjLayer "-D-PKG-1"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= LyrSuffix "V") (strcat ObjLayer "-V-PKG-1"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp; (command "._Layer" "_M" NewLyrname "")<BR>&nbsp;&nbsp; (princ)<BR>)</pre></td></tr></table></DIV></td></tr></table> ]]>
   </description>
   <pubDate>Wed, 23 Feb 2011 17:48:11 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13522&amp;title=lisp-error#13522</guid>
  </item> 
  <item>
   <title><![CDATA[LISP Error :  Nice Carl, thanks for that....]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13521&amp;title=lisp-error#13521</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=16131">HAWDesigner</a><br /><strong>Subject:</strong> 5351<br /><strong>Posted:</strong> 23.Feb.2011 at 15:26<br /><br />Nice Carl, thanks for that. I hope I didn't throw you under the bus there. <img src="https://www.cadforum.cz/forum_en/smileys/smiley3.gif" border="0" align="absmiddle" alt="Shocked" /><br><br>Here's something I noticed in v2009:<br><span style="font-family: monospace;"><br><table width="99%"><tr><td><pre class="BBcode"></span>(Setq LyrSuffix (getkword "\nEnter suffix type &#091;N-PKG-1/D-PKG1/V-PKG-1&#093;:"));R-1</pre></td></tr></table><br><br>The code above results in an error if you select the value from the Drafting ToolTips.<br><img src="http://bitexas.net/CZ/ToolTip01.jpg" height="225" width="265" border="0" /><br><br><br>... because it is entering the entire value instead of just the N, D, or V as the "(initget "N D V");R-1" requests.<br><br>In order to prevent that error, I had to change the line to the following, but I know that doesn't fully explain what's going on.<br><br><table width="99%"><tr><td><pre class="BBcode">(Setq LyrSuffix (getkword "\nEnter suffix type &#091;N/D/V&#093;:"));R-1</pre></td></tr></table><br><br>Is there any way to have it both ways?<br><span style="font-size:10px"><br /><br />Edited by HAWDesigner - 23.Feb.2011 at 15:27</span>]]>
   </description>
   <pubDate>Wed, 23 Feb 2011 15:26:28 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5351&amp;PID=13521&amp;title=lisp-error#13521</guid>
  </item> 
 </channel>
</rss>