<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't seem to add code to the lisp in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387504#M41595</link>
    <description>&lt;P&gt;I don't see what could be causing that, but if you don't mind a suggestion, I find it very odd to make new Layers with a name you don't want, and then immediately rename them.&amp;nbsp; Also, since most are not assigned any properties for which having them current spares you the need to spell out the name again, they may as well be made with the New option, rather than Make.&amp;nbsp; And you can create multiple New Layers in one shot, with comma separators.&amp;nbsp; You can also combine multiple Layer operations in one Layer command.&amp;nbsp; You should be able to do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun DML_HERNOEM () ;functie voor het hernoemen van lagen
  ;eerste deel maakt laag aan indien deze niet bestaat, 2e deel hernoemt de laag
  (command "_.layer"
    "_new" "02_Exterior_STR1,02_Exterior_STR2,03_Interior_STR1,03_Interior_STR2"
    "make" "01_Binnenwanden" "Color" 40 "" ;op deze laag worden de nieuwe binnenwanden getekend
    "make" "01_Binnenwanden_start" "Color" 70 "" ;op deze laag worden de wand blokken geplaatst
    "set" "0" "" ;zorgt ervoor dat laag 0 weer actief wordt
  ); command
) ;einde functie DML_hernoem&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that probably will not eliminate your error....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; Which lines did you add?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2022 12:12:15 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2022-08-29T12:12:15Z</dc:date>
    <item>
      <title>Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387442#M41594</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Noob here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to find the solution to my problem for the better part of the weekend, but seem unable to find it, or any clues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the situation:&lt;/P&gt;&lt;P&gt;A collegue of mine, who is sadly no longer my collegue, wrote a piece of code that clean up a dxf-file exported by revit. The cleaned-up dxf-file is used by a laser to project lines on a floor-frame that is build in the factory.&lt;/P&gt;&lt;P&gt;My ex-collegue was asked to tranfer the code, and the basis knowledge of changing it, to me.&lt;/P&gt;&lt;P&gt;This was two months ago.&lt;/P&gt;&lt;P&gt;Last week i was tasked with added and tweaking some of the code, but i cant seem te add lines of code to the lsp-file in the visual studio application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what happens is this:&lt;/P&gt;&lt;P&gt;1. I load the code in VS&lt;/P&gt;&lt;P&gt;2. I start debugging and connect it to a dxf file that is opened in autocad 2022&lt;/P&gt;&lt;P&gt;3a. the original code runs, without problems&lt;/P&gt;&lt;P&gt;3b. the code that had added lines gives the following error 'no function definition: DML_HERNOEM'&lt;/P&gt;&lt;P&gt;the function DML_HERNOEM does exist, it ran without my code additions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this might be a hint: the&amp;nbsp;DML_HERNOEM is the first function that is called in the main function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;both the main function and the funtion that 'doesn't exist' are given below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be much appreciated. thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:DML_vloeraanzicht (#type# /) ;functie vraagt 1 tekst variabele aanroep b.v. (c:DML_vloeraanzicht "K21")(c:DML_vloeraanzicht "OPG")
  (command "undo" "begin")
  (setvar "cmdecho" 0)
  (setq #DML_snap# (getvar "osmode"))
  (setvar "osmode" 0)
  (setq #hoogte_bakje# 0) ;hoogte bakje op de vloer
  (DML_HERNOEM) ;hernoemen van lagen  THIS IS WHERE THE ERROR OCCURS
  (DML_zetvloerwaardes) ;haalt de juiste hoogte waardes op aan de hand van het ingegeven type
  (DML_tekststijl) ;stel de tekststijl in en wijzig alle bestaande teksten naar deze stijl
  (DML_minmax) ;bepaal de linker onderhoek van de hoekkolommen
  (DML_lijnen) ;teken de lijnen door de vier hoeken
  (DML_verplaats -100 -100) ;verplaats de selectie naar het 0,0 coördinaat
  (command "zoom" "extents") ;test voor SJAAK  KAN UIT BIJ LIVE ZETTEN
  (DML_verwijder_vloerobjecten) ;verwijder objecten en hun lagen die we niet willen projecteren
  (DML_unitnummer_vloeraanzicht) ;zet de unit nummer in de linker onderhoek
  (DML_rotate) ;draai de unit 90°
  (DML_Laad_Blok) ;controleer of de eind blokken van de binnenwanden geladen zijn
  (DML_vind_muur_lijnen) ;ga op zoek naar de lijnen van de binnenwanden
  (DML_verschuif_Z) ;functie die de diversen lagen naar de juiste Z waardes opschuift
  (DML_Overkill) ;voegt lijnen etc samen
  (DML_hernoem_Laag) ;functie voor het hernoemen van de lagen voor naar gelang het bouwsysteem
  (DML_purge) ;opschonen van de tekening
  (DML_verplaats_nulpunt -217 +15) ;Correctie om de units t.o.v. het 0,0 coördinaat van de laser te verplaatsen
  (command "zoom" "extents")
  (setvar "osmode" #DML_snap#)
  (setvar "cmdecho" 1)
  (command "undo" "end")
  (command "saveas" "dxf" "16" "" "Y") ;het bestand opslaan als DXF en overschrijven bestaand
  (princ) ;schoon afsluiten
);einde functie DML_vloeraanzicht

(defun DML_HERNOEM () ;functie voor het hernoemen van lagen
  ;eerste deel maakt laag aan indien deze niet bestaat, 2e deel hernoemt de laag
  (command "-layer" "make" "28_Wanden_STR1_Exterior" "")
  (command "-rename" "Layer" "28_Wanden_STR1_Exterior" "02_Exterior_STR1")
  (command "-layer" "make" "28_Wanden_STR2_Exterior" "")
  (command "-rename" "Layer" "28_Wanden_STR2_Exterior" "02_Exterior_STR2")
  (command "-layer" "make" "28_Wanden_STR1_Interior" "")
  (command "-rename" "Layer" "28_Wanden_STR1_Interior" "03_Interior_STR1")
  (command "-layer" "make" "28_Wanden_STR2_Interior" "")
  (command "-rename" "Layer" "28_Wanden_STR2_Interior" "03_Interior_STR2")
  (command "-layer" "make" "01_Binnenwanden" "Color" 40 "" "") ;op deze laag worden de nieuwe binnenwanden getekend
  (command "-layer" "make" "01_Binnenwanden_start" "Color" 70 "" "") ;op deze laag worden de wand blokken geplaatst
  (command "-layer" "set" "0" "") ;zorgt ervoor dat laag 0 weer actief wordt
) ;einde functie DML_hernoem&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 11:38:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387442#M41594</guid>
      <dc:creator>s.vegmond</dc:creator>
      <dc:date>2022-08-29T11:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387504#M41595</link>
      <description>&lt;P&gt;I don't see what could be causing that, but if you don't mind a suggestion, I find it very odd to make new Layers with a name you don't want, and then immediately rename them.&amp;nbsp; Also, since most are not assigned any properties for which having them current spares you the need to spell out the name again, they may as well be made with the New option, rather than Make.&amp;nbsp; And you can create multiple New Layers in one shot, with comma separators.&amp;nbsp; You can also combine multiple Layer operations in one Layer command.&amp;nbsp; You should be able to do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun DML_HERNOEM () ;functie voor het hernoemen van lagen
  ;eerste deel maakt laag aan indien deze niet bestaat, 2e deel hernoemt de laag
  (command "_.layer"
    "_new" "02_Exterior_STR1,02_Exterior_STR2,03_Interior_STR1,03_Interior_STR2"
    "make" "01_Binnenwanden" "Color" 40 "" ;op deze laag worden de nieuwe binnenwanden getekend
    "make" "01_Binnenwanden_start" "Color" 70 "" ;op deze laag worden de wand blokken geplaatst
    "set" "0" "" ;zorgt ervoor dat laag 0 weer actief wordt
  ); command
) ;einde functie DML_hernoem&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that probably will not eliminate your error....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; Which lines did you add?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 12:12:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387504#M41595</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-08-29T12:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387513#M41596</link>
      <description>&lt;P&gt;Hi Kent1Cooper,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I am not sure what the reason was for my ex-collegue the write that particular piece of code in that way. If/when if learm more about it i'll check back and evaluate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i also think it won't solve the error. thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sjaak&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 12:06:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387513#M41596</guid>
      <dc:creator>s.vegmond</dc:creator>
      <dc:date>2022-08-29T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387634#M41597</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10238986"&gt;@s.vegmond&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;.... 'no function definition: DML_HERNOEM' ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That suggests that somehow the&amp;nbsp;c:DML_vloeraanzicht command definition is not properly completed, which would mean the&amp;nbsp;&lt;SPAN&gt;DML_HERNOEM definition is "inside" it, and being further down the line, has not yet been defined by the time it calls for that.&amp;nbsp; If that's true, it suggests a missing closing right parenthesis somewhere, but I didn't see anything.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here's a grabbing-at-straws possibility:&amp;nbsp; Was the .lsp file ever edited in a &lt;EM&gt;word processor&lt;/EM&gt;, rather than a &lt;EM&gt;plain-text&lt;/EM&gt; editor?&amp;nbsp; That could result in some quotation marks being the "smart" kind that are different at the left and right ends of a quote, like&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;“&lt;/STRONG&gt;&lt;/FONT&gt;this&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;”&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;[little &lt;FONT color="#FF0000"&gt;6&lt;/FONT&gt;'s vs, little &lt;FONT color="#FF0000"&gt;9&lt;/FONT&gt;'s], rather than &lt;EM&gt;plain&lt;/EM&gt; ASCII double-quote characters.&amp;nbsp; If any are, that could explain the issue -- some command or system variable or option name might not be really "ended," and the rest of the code gets buried in that until the next plain double-quote.&amp;nbsp; I don't see any that look that way, but it's possible that such a thing might exist in your .lsp file but could become a plain one when pasted into a code window here. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I can't test for that, not having all those other sub-routine definitions.&amp;nbsp; But t&lt;/SPAN&gt;&lt;SPAN&gt;ry putting the&amp;nbsp;DML_HERNOEM definition &lt;EM&gt;first&lt;/EM&gt; in the file, and then loading it.&amp;nbsp; If my quotation-marks idea is correct, I expect that part will work, and you will get some other error further along.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 12:57:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387634#M41597</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-08-29T12:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387820#M41598</link>
      <description>&lt;P&gt;Hi Kent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That did somthing! Thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i moved the function DML_HERNOEM to just below the main function and started debugging again. This time the main function gave the same error, but at a different position/subfunction. it appears that functions after my code addition do no 'work' anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This suggests that the code I added if the cause...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code i added is given below. it is added IN a (previously) working subfunction. i've double checked the quotation marks, by retyping them. The amount of left and right &lt;SPAN&gt;parenthesis&amp;nbsp;should be good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What i try to do with this code is to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;put certain blocks (with "*paring*" in the block name) from certain layers (layer names starting with "A-GENM-*") in another layer and deleting the source layers. I've tried to do this by reusing/adapting some code from the lisp with a little help from otger forum/internet posts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;    ;blocks met *paring* in naam in betreffende layers selecteren - kan met ssget
    (setq #SparingSel# (ssget "_X" '(0 . "INSERT")(2 .  "*paring*")(8 . "A-GENM-*")))
    ;temp laag aanmaken tmp_LG_1
    (setvar tmp_lg "tmp_lg_sparing")
    (command "_layer" "m" tmp_lg "")
    ;selectie naar laag tmp_LG_1
    (command "_chprop" #SparingSel# "" "_LA" tmp_lg "")
    ;'oude' lagen weggooien/legen
    (setq #SelOld1# (ssget "_X" '(8 . "A-GENM*")))
    (DML_verwijder_objecten #SelOld1#) ;roep de functie verwijder objecten aan met een laag als argument&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the error in this code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:57:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11387820#M41598</guid>
      <dc:creator>s.vegmond</dc:creator>
      <dc:date>2022-08-29T13:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11388037#M41599</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10238986"&gt;@s.vegmond&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What i try to do with this code is to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;put certain blocks (with "*paring*" in the block name) from certain layers (layer names starting with "A-GENM-*") in another layer and deleting the source layers. ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If wanting to delete the source Layers means the Blocks in question are the &lt;EM&gt;only&lt;/EM&gt; things on those Layers, consider using &lt;STRONG&gt;LAYMRG&lt;/STRONG&gt; instead, to merge all the "certain Layers" into the "another layer."&amp;nbsp; That will &lt;EM&gt;both&lt;/EM&gt; put the Blocks [which you will not need to select, and it won't even matter if there are none] on the new Layer, &lt;EM&gt;and&lt;/EM&gt; delete the source Layers in the process.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:05:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11388037#M41599</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-08-29T15:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11389190#M41600</link>
      <description>&lt;P&gt;Should this be, doubtful that a variable tmp_lg exists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setvar tmp_lg "tmp_lg_sparing")

(setq tmp_lg "tmp_lg_sparing")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 01:40:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11389190#M41600</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-08-30T01:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11389584#M41601</link>
      <description>&lt;P&gt;Hi Kent,&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;The blocks with "*paring*" in the block name can be divided over 3 layers, all of these layers start with "A-GENM-*" (* to be the wildcard for both block names and layer names).&lt;BR /&gt;It would have been nicer to have all relevant block on 1 layer, but currently i cannot control the way the DFX is exported.&lt;BR /&gt;As it is now, all three layers could contain 12 blocks each, with only 3 per layer having "*paring*" in the block name.&lt;BR /&gt;I was trying the use ssget to get this selectin. Did I do this correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Sea-Haven,&lt;BR /&gt;Thank you for you reply.&lt;BR /&gt;That seems to be an error on my part. I'll change the setvar to setq as stated in line 3 of your snippet.&lt;BR /&gt;Would this solve my overall problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sjaak&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:45:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11389584#M41601</guid>
      <dc:creator>s.vegmond</dc:creator>
      <dc:date>2022-08-30T06:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11390190#M41602</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10238986"&gt;@s.vegmond&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;... i try to ...&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;put certain blocks (with "*paring*" in the block name) from certain layers (layer names starting with "A-GENM-*") in another layer and deleting the source layers. ....&lt;/SPAN&gt;&lt;BR /&gt;.... As it is now, all three layers could contain 12 blocks each, with only 3 per layer having "*paring*" in the block name. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The second quotation indicates that there are &lt;EM&gt;other Blocks&lt;/EM&gt;&amp;nbsp;[and possibly other kinds of things] on those Layers, which you &lt;EM&gt;don't&lt;/EM&gt; want moved to the new Layer.&amp;nbsp; The first quotation suggests that you want to &lt;EM&gt;eliminate those other Blocks&lt;/EM&gt;, since that would be the result of deleting their Layer.&amp;nbsp; Is that correct?&amp;nbsp; If so, LAYMRG is not the solution, because it would keep them, and move them to the other Layer along with the ones you want moved.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 11:31:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11390190#M41602</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-08-30T11:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11391632#M41603</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10238986"&gt;@s.vegmond&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found one problem...&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setq #SelOld1# (ssget "_X" '(8 . "A-GENM*")))&lt;/LI-CODE&gt;
&lt;P&gt;should be&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setq #SelOld1# (ssget "_X" '((8 . "A-GENM*"))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;After (ssget "x" should be a list of dotted pairs. not just one dotted pair.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 22:23:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11391632#M41603</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2022-08-30T22:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't seem to add code to the lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11392160#M41604</link>
      <description>&lt;P&gt;This was the solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel kinda stupid it was the parentheses, but happy it works. Thanks to all who participated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;before:
(setq #SparingSel# (ssget "_X" '(0 . "INSERT")(2 .  "*paring*")(8 . "A-GENM-*")))
;changed:
(setq #SparingSel# (ssget "_X" '((0 . "INSERT")(2 .  "*paring*")(8 . "A-GENM-*"))))
;
;
;before:
(setq #SelOld1# (ssget "_X" '(8 . "A-GENM*")))
;changed:
(setq #SelOld1# (ssget "_X" '((8 . "A-GENM*"))))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Aug 2022 06:56:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-t-seem-to-add-code-to-the-lisp/m-p/11392160#M41604</guid>
      <dc:creator>s.vegmond</dc:creator>
      <dc:date>2022-08-31T06:56:20Z</dc:date>
    </item>
  </channel>
</rss>

