<?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: Delete layout tabs with specific wildcards while keeping others in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975833#M48559</link>
    <description>&lt;P&gt;Thanks for the quick turnaround! I ran the routine and it states "delete" certain tabs, but the tabs remain in the drawing. Please see image attached.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="layoutexample.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1030691i918CC7C319611685/image-size/large?v=v2&amp;amp;px=999" role="button" title="layoutexample.png" alt="layoutexample.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 18:00:59 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2022-02-28T18:00:59Z</dc:date>
    <item>
      <title>Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975723#M48557</link>
      <description>&lt;P&gt;I have numerous layout tabs for different elevations -A, -B, and -C. If I wish to keep all -A layout tabs, I don't know how to automatically delete all -B and -C tabs. Or if I need - B, how do I delete -A and -C tabs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I have numerous tabs with odd names, is there a way I can add them to a list and any tab names within this list never get deleted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 16:57:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975723#M48557</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2022-02-28T16:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975809#M48558</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Any assistance would be appreciated!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You got it, assistance it is&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(Defun c:Demo (/ opt msg)
  (initget 1 "A B C")
  (setq	msg "\nDelete "
	opt (getkword
	      "\nChoose option [A | Delete B &amp;amp; C/B | Delete A &amp;amp; C/C | Delete A &amp;amp; B]: "
	    )
  )
  (foreach lay (Layoutlist)	;&amp;lt;-this is where the layout names are listed
    (princ (Strcat
	     (cond
	       ((and (eq opt "A") (wcmatch lay "*-B,*-C")) msg)
	       ((and (eq opt "B") (wcmatch lay "*-A,*-C")) msg)
	       ((and (eq opt "C") (wcmatch lay "*-A,*-B")) msg)
	       (T (strcat "\nDo nothing with "))
	     )
	     lay
	   )
    )(princ)
  )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;HTh&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 17:38:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975809#M48558</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-02-28T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975833#M48559</link>
      <description>&lt;P&gt;Thanks for the quick turnaround! I ran the routine and it states "delete" certain tabs, but the tabs remain in the drawing. Please see image attached.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="layoutexample.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1030691i918CC7C319611685/image-size/large?v=v2&amp;amp;px=999" role="button" title="layoutexample.png" alt="layoutexample.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 18:00:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975833#M48559</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2022-02-28T18:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975890#M48560</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the quick turnaround! I ran the routine and it states "delete" certain tabs, but the tabs remain in the drawing. Please see image attached.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;My bad&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;, the post was&amp;nbsp; intended to show you how to go about dealing with conditions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Anyway here you go.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(Defun c:Demo (/ deltab opt msg)
(defun deltab (nm)
  (command "_Layout" "_delete" nm)
)
  (initget 1 "A B C")
  (setq	msg "\nDelete "
	opt (getkword
	      "\nChoose option [A | Delete B &amp;amp; C/B | Delete A &amp;amp; C/C | Delete A &amp;amp; B]: "
	    )
  )
  (setvar 'ctab "Model")
  (foreach lay (Layoutlist)	;&amp;lt;-this is where the layout names are listed
	(cond
	       ((and (eq opt "A") (wcmatch lay "*-B,*-C")) (deltab lay))
	       ((and (eq opt "B") (wcmatch lay "*-A,*-C")) (deltab lay))
	       ((and (eq opt "C") (wcmatch lay "*-A,*-B")) (deltab lay))
	       (T (princ (strcat "\nDo nothing with " lay)))
	     )
	     
    )(princ)
  )&lt;/LI-CODE&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 18:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975890#M48560</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-02-28T18:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975920#M48561</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;.... I have numerous tabs with odd names, is there a way I can add them to a list and any tab names within this list never get deleted?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the odd names would never end in -A, -B or -C, you don't need to worry about them with the code already suggested.&amp;nbsp; If any of them might ever have one of those endings [but be odd in other aspects, whatever they are], then a list of them would be appropriate, which could be checked against in the tab-name test, along with testing for the ending:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;(and (wcmatch ...) (not (member ...)))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 18:47:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975920#M48561</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-02-28T18:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975933#M48562</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564264"&gt;@pbejse&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the quick turnaround! I ran the routine and it states "delete" certain tabs, but the tabs remain in the drawing. Please see image attached.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;My bad&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;, the post was&amp;nbsp; intended to show you how to go about dealing with conditions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Anyway here you go.&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(Defun c:Demo (/ deltab opt msg &lt;STRONG&gt;never&lt;/STRONG&gt;)
  
&lt;STRONG&gt;  (setq never "COV,TR-1,MOSTPRECIOUS,CA")&lt;/STRONG&gt;
    
  (defun deltab (nm)
    (command "_Layout" "_delete" nm)
    )
  (initget 1 "A B C")
  (setq	msg "\nDelete "
	opt (getkword
	      "\nChoose option [A | Delete B &amp;amp; C/B | Delete A &amp;amp; C/C | Delete A &amp;amp; B]: "
	      )
	)
  (setvar 'ctab "Model")
  (foreach lay (Layoutlist)	;&amp;lt;-this is where the layout names are listed
    (cond
  &lt;STRONG&gt;    ((wcmatch lay never))&lt;/STRONG&gt;
      ((and (eq opt "A") (wcmatch lay "*-B,*-C")) (deltab lay))
      ((and (eq opt "B") (wcmatch lay "*-A,*-C")) (deltab lay))
      ((and (eq opt "C") (wcmatch lay "*-A,*-B")) (deltab lay))
      (T (princ (strcat "\nDo nothing with " lay)))
      )
    
    )(princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;... with my little contribution to...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Also, I have numerous tabs with odd names, is there a way I can add them to a list and any tab names within this list never get deleted?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 19:01:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975933#M48562</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-02-28T19:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975954#M48563</link>
      <description>&lt;P&gt;This one works a Little differently. Anything you enter is considered as having wildcard. Just enter the string that's common to the Layouts you want to use and select Keep or delete.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(DEFUN C:Dlays (/ lay LayList layTXT answ)
  (setq LayList (layoutlist))
  (setq layTXT (getstring "\n Enter layout string to Keep or Delete " T))
  (setq answ (getstring "[Keep / Delete] "))
  (if (= answ "D")
    (progn
      (foreach lay LayList
        (if (Vl-string-search layTXT lay)
	  (command ".-Layout" "D" lay )
	)
      )
      )
    (progn
      (foreach lay LayList
        (if (not (Vl-string-search layTXT lay))
	  (command ".-Layout" "d" lay )
	)
      )
      )
   )
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 19:03:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975954#M48563</guid>
      <dc:creator>GeeHaa</dc:creator>
      <dc:date>2022-02-28T19:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975990#M48564</link>
      <description>&lt;P&gt;Sorry, Loaded and ran again.... but same results, no tabs are getting deleted....&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 19:27:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10975990#M48564</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2022-02-28T19:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10976067#M48565</link>
      <description>&lt;P&gt;Just made a quick test and it does what it is supposed to. So try it once more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 20:20:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10976067#M48565</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-02-28T20:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10976101#M48566</link>
      <description>&lt;P&gt;Try not using any " * "s They are implied.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 20:36:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10976101#M48566</guid>
      <dc:creator>GeeHaa</dc:creator>
      <dc:date>2022-02-28T20:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977510#M48567</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry, Loaded and ran again.... but same results, no tabs are getting deleted....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I dont see a reason it would not get deleted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Do me a favor and paste this on your command line (Layoutlist) and show me what you get.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You need to remember the string needs to match with the pattern e.g.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;(wcmatch &lt;STRONG&gt;"4-B"&lt;/STRONG&gt; "*-B,*-C" ) will return T but&amp;nbsp;(wcmatch &lt;STRONG&gt;"4 - B"&lt;/STRONG&gt; "*-B,*-C" ) will be nil.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You need to tell us what other conditions you have for layout tab names, is it always have a space between the characters? or both can happen, we can add more filters for that if needed.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 15:58:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977510#M48567</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-03-01T15:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977620#M48568</link>
      <description>&lt;P&gt;The command worked once I removed the spaces on each side of the DASH!!!! It would be nice if the command would also recognize if there were spaces on each side of the dash as well, a space on one side of the dash or the other, just in case someone didn't follow procedure, if that's not too difficult to accomplish. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 16:41:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977620#M48568</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2022-03-01T16:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977717#M48569</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The command worked once I removed the spaces on each side of the DASH!!!! It would be nice if the command would also recognize if there were spaces on each side of the dash as well, a space on one side of the dash or the other, just in case someone didn't follow procedure, if that's not too difficult to accomplish. Thank you.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Sure, Tell me, are there any other layout tab names that we need to consider ? a name that could be mistaken as a hit,&amp;nbsp; something like &lt;STRONG&gt;"This-A"&lt;/STRONG&gt; or &lt;STRONG&gt;"That-B",&lt;/STRONG&gt;&lt;/FONT&gt; we can include this as part of this as suggested by&lt;STRONG&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt; (setq never "COVID-19,TR-1,THIS-A,MOSTPRECIOUS,THAT-B,DELTA VARIANT")
&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp;or any other conditions that you may think of.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Times up &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;(Defun c:Delabc (/  opt msg never f)  
(setq never "COVID-19,TR-1,THIS-A,MOSTPRECIOUS,THAT-B,DELTA VARIANT")
(initget 1 "A B C")
  (setq	msg "\nDelete "
	opt (getkword
	      "\nChoose option [A | Delete B &amp;amp; C/B | Delete A &amp;amp; C/C | Delete A &amp;amp; B]: "
	    )
  )
 (Setq f (Cdr (assoc opt '(("A" "B" "C") ("B" "A" "C") ("C" "A" "B")))))
 (setvar 'ctab "Model")
  
  (foreach lay (Layoutlist)	;&amp;lt;-this is where the layout names are listed
	(cond
	  ((wcmatch lay never))
	  ((vl-some '(lambda (p)
		      (if (wcmatch lay (Strcat p (car f) "," p (Cadr f) )) p))
			     		'("*-" "*- ")) 
	   (command "_Layout" "_delete" lay)
	   )
	  )
    )
(princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 18:47:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977717#M48569</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-03-01T18:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977806#M48570</link>
      <description>&lt;P&gt;I think if there's something that shouldn't be erased but has a -A etc, I can add them to the "NEVER" list and that way they would remain. I tested that by adding COV-A to the never list and hit "B" in the command. The COV-A remained while all other "-A" items were erased.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 18:11:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977806#M48570</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2022-03-01T18:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977815#M48571</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I think if there's something that shouldn't be erased but has a -A etc, I can add them to the "NEVER" list and that way they would remain. I tested that by adding COV-A to the never list and hit "B" in the command. The COV-A remained while all other "-A" items were erased.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;That's good to know,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Refer to the code at post # 13 to&amp;nbsp; recognize all this pattern&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;("*-"  "*- " "* -" "* - ")
&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Command:&amp;nbsp;Delabc&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Choose option [A | Delete B &amp;amp; C/B | Delete A &amp;amp; C/C | Delete A &amp;amp; B]: B&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clearly.png" style="width: 146px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1031110i71DB84B13F2A8054/image-dimensions/146x106?v=v2" width="146" height="106" role="button" title="clearly.png" alt="clearly.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Let me know how it goes.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 18:21:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977815#M48571</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-03-01T18:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977850#M48572</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... It would be nice if the command would also recognize if there were spaces on each side of the dash as well, a space on one side of the dash or the other, just in case ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="4" color="#000000"&gt; A/B/C &lt;/FONT&gt;&lt;/STRONG&gt;letter is always &lt;EM&gt;&lt;STRONG&gt;at the end&lt;/STRONG&gt;&lt;/EM&gt; of the name, then you don't need to check for a possible space &lt;EM&gt;&lt;STRONG&gt;before&lt;/STRONG&gt;&lt;/EM&gt; the dash [whether or not in combination with one after it].&amp;nbsp; You can check for only the endings&lt;FONT face="courier new,courier" size="4" color="#000000"&gt;&lt;STRONG&gt; -A&lt;/STRONG&gt; &lt;/FONT&gt;or&lt;FONT face="courier new,courier" size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; - A&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;[and similarly for&lt;FONT face="courier new,courier" size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; B&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;and&lt;FONT face="courier new,courier" size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; C&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;].&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 18:30:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977850#M48572</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-03-01T18:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977874#M48573</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;...&amp;nbsp; You can check for only the endings&lt;FONT face="courier new,courier" size="4" color="#000000"&gt;&lt;STRONG&gt; -A&lt;/STRONG&gt; &lt;/FONT&gt;or&lt;FONT face="courier new,courier" size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; - A&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;[and similarly for&lt;FONT face="courier new,courier" size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; B&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;and&lt;FONT face="courier new,courier" size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; C&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;].&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Yup that make sense&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;,&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="3"&gt;It could be just 2 wildcard&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;(vl-some '(lambda (p)
		      (if (wcmatch lay (Strcat p (car f) "," p (Cadr f) )) p))
			     		'(&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;"*-"  "*- "&lt;/STRONG&gt;&lt;/FONT&gt;))
&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Good catch&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 18:45:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/10977874#M48573</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-03-01T18:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/11123754#M48574</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/97322"&gt;@johnw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have numerous layout tabs for different elevations -A, -B, and -C. If I wish to keep all -A layout tabs, I don't know how to automatically delete all -B and -C tabs. Or if I need - B, how do I delete -A and -C tabs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance would be appreciated!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun c:Demo6 ( / _OptSel  _sort _getOptions optList _sel _Group _LayDes _layFilter _DelMoveWindow
			aDoc Layers fltr f5 ABC:Opt ABC OptElev tpoint Opt:Num Num Num:Opt OptElev
			ThisList from )
  
;;;		pBe Apr 2022  			;;
(defun _OptSel (lst / cnt iStr gStr)  
;;		CodeDing Original		;;
  
(setq cnt 0 iStr ""  gStr "")
	(while (&amp;lt;= (setq cnt (1+ cnt)) (length lst))
	  (setq iStr (strcat iStr (itoa cnt) " "))
	  (setq	gStr (strcat gStr
			     (itoa cnt)
			     " . "
			     (strcat (car (nth (1- cnt) lst)) " | "
				     (cadr (nth (1- cnt) lst)))
			     "/"
		     )
	  )
	)
(setq iStr (substr iStr 1 (1- (strlen iStr)))
      gStr (substr gStr 1 (1- (strlen gStr)))
)
  
(initget 1 iStr)  
(setq ans (getkword (strcat "\nChoose Option: [" gStr "]: ")))
(nth (1- (atoi ans)) lst)  
  )
  
(defun _sort (l)(vl-sort l '(lambda (a b)(&amp;lt; (car a)(car b)))))
(defun _Opt (str)
  (cond
    ((not (setq p (vl-string-position 95 str)))	)
  	((list (substr str 1 p)(substr str (1+ p))))
    )
  )
  
(defun _getOptions (layers pre / d ln l l#)
  (vlax-for lay layers    
    (setq d (list (setq ln  (vla-get-name lay)) (vla-get-Description lay)))
    (cond
	  ((wcmatch ln  "*|*")	)
	  ((wcmatch (strcase ln) (strcase pre))
	   	(setq l (cons d l )))
	  )
    )
  (if l	(_sort l))
  	)
(defun _sel (l ss   / i e ln ll ur pts lst )
(repeat (setq i (sslength ss))
      (setq e (vlax-ename-&amp;gt;vla-object (ssname ss (setq i (1- i))))
	    Ln (vla-get-layer e ))
      (vla-GetBoundingBox e 'll 'ur)
      (setq pts (mapcar 'vlax-safearray-&amp;gt;list (list ll ur)))
      (if
	(and (assoc Ln l)(not (assoc Ln lst)))
	      (setq lst (cons (list Ln (_LayDes Ln Layers) pts ) lst))
		)
	  )
(_sort lst)
  )
  
(defun _Group (l / a lst)
  (while (setq a (car l))
    (setq lst 
    	(if (setq f (assoc (Car (setq o (_Opt (Car a)))) lst))
	  	(subst (list (car f)(cadr f)(cons (cadr o) (caddr f))) f lst)
	  (cons (list (car o) (cadr a)(cdr o) (caddr a)) lst)
	  )
	  )
    (setq l (cdr l))
    )
  (reverse lst)
  )
  
(defun _LayDes (ln lColl)
  (vla-get-description (vla-item lColl ln)))
(defun _layFilter (l)
       (apply 'strcat (mapcar '(lambda (n)(strcat n ",")) (mapcar 'car l )))
  )
(defun _DelMoveWindow (l m / d n )
  (if (setq d (ssget "C" (car l) (cadr l) nil))
    	(repeat (setq n (sslength d))
	  (setq e (vlax-ename-&amp;gt;vla-object (ssname d (setq n (1- n)))))
	  (if m    		
	    	(vlax-invoke e 'Move (car m) (cadr m))
	    	(vla-delete e)
	  )
      )
    )
  l
  )
  
(setq aDoc (vla-get-ActiveDocument (vlax-get-acad-object))
      Layers (vla-get-layers aDoc)
      fltr '((0 . "LWPOLYLINE")(410 . "Model")))
  
(vla-ZoomExtents (vlax-get-acad-object))
  
(setq f5 '(foreach itm ThisList
	  (princ (strcat "\nRemoving Option | " (Car itm) ":" (Cadr itm)))
	  (foreach opt_ (caddr itm)		  	
	  	(and (setq f (assoc (strcat (Car itm) opt_) Num))
		     (_DelMoveWindow (caddr f) nil)
		     )
	    )
	  )
      )
	(if
	  (and
	    	(setq ABC:Opt  (_getOptions  Layers "OPT-@"))
		(setq ABC (ssget "_X" (append fltr
					  (list (cons 8  (_layFilter ABC:Opt))))))	
		(setq ABC (_sel ABC:Opt ABC))	
		(setq OptElev (_OptSel ABC))	
		(cond
			((eq (car OptElev) (caar ABC))
				(foreach opt (vl-remove OptElev ABC)
		  					(_DelMoveWindow (caddr opt) nil)))
			( T (_DelMoveWindow (setq tpoint (caddr (assoc (caar ABC) ABC))) nil)
			 	(_DelMoveWindow (caddr OptElev) (list (caaddr OptElev) (car tpoint)))   
			 	(foreach opt (vl-remove OptElev (cdr ABC))
				  		(_DelMoveWindow (caddr opt) nil))
			 )
		)		 	
		(setq Opt:Num  (_getOptions  Layers "OPT-#*"))
	        (setq Num (ssget "_X" (append fltr
					  (list (cons 8  (_layFilter Opt:Num))))))		
		)
	  (progn
	    (setq Num (_sel Opt:Num Num))
	    (setq Num:Opt (_Group Num))
	    (setq OptElev (_OptSel Num:Opt))
	    	(cond
		  ((eq (car OptElev) (caar Num:Opt))
		   (setq ThisList (cdr Num:Opt)) (eval f5)
		   )
		  ( T (setq ThisList (vl-remove OptElev Num:Opt))(eval f5)
			     (princ (strcat "\nMoving Option | " (Car OptElev) ":" (Cadr OptElev)))
				  (foreach opt_ (caddr OptElev)			    
				  	(and (setq from (caddr  (assoc (strcat (Car OptElev) opt_) Num)))
					     (setq tpoint (caddr (assoc (strcat (caar Num:Opt) opt_) Num)))
					     (_DelMoveWindow from (list (Car from) (Car tpoint)))
					     )
				    	)
				  )
		  )
	    )
	  )
  (princ)
)
(vl-load-com)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Watch the video to see how it works&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV id="aa8af69e-5401-4212-bc1a-130dd340bda4" class="myscreencast-iframe iframe-container active-myscreencast"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/aa8af69e-5401-4212-bc1a-130dd340bda4" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/aa8af69e-5401-4212-bc1a-130dd340bda4"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV class="myscreencast-iframe iframe-container active-myscreencast"&gt;HTH&lt;/DIV&gt;
&lt;DIV id="1ccf336a-4ca7-45b5-9d1d-339f2ad278e3" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/1ccf336a-4ca7-45b5-9d1d-339f2ad278e3"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="de2edf25-0c98-4e60-be69-bad78391f0eb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/de2edf25-0c98-4e60-be69-bad78391f0eb"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="fa4dd5c2-ac48-4ae2-9566-2b644da59572" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/fa4dd5c2-ac48-4ae2-9566-2b644da59572"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="dc4772c6-a6e4-43a0-8fe8-7b944f49c995" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/dc4772c6-a6e4-43a0-8fe8-7b944f49c995"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3c83688b-2097-427d-a19b-3cf56a7f64d0" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/3c83688b-2097-427d-a19b-3cf56a7f64d0"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="0c330009-785b-4123-a514-efdefc6e8cbd" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/0c330009-785b-4123-a514-efdefc6e8cbd"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="36f9cdef-53fe-4ee7-a677-2e731f14ed91" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/36f9cdef-53fe-4ee7-a677-2e731f14ed91"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b8fd68eb-2aa8-4d13-a0b4-b03b40a09b7f" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/b8fd68eb-2aa8-4d13-a0b4-b03b40a09b7f"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="27f10fd9-6855-4d65-960f-a197c2f46268" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/27f10fd9-6855-4d65-960f-a197c2f46268"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9d120183-26a1-4cf0-9ccb-6b68d5a8fb69" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/9d120183-26a1-4cf0-9ccb-6b68d5a8fb69"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5de9a6b1-118e-4ed9-8114-724ee7f508ad" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/5de9a6b1-118e-4ed9-8114-724ee7f508ad"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="428647c5-4517-4fac-89e6-d8c58ab8ef2c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/428647c5-4517-4fac-89e6-d8c58ab8ef2c"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3eeb7056-1238-48b8-9e49-467254deae36" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/3eeb7056-1238-48b8-9e49-467254deae36"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6ff38851-ac39-4172-92fa-9a1b35089452" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/6ff38851-ac39-4172-92fa-9a1b35089452"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="e4cf785d-6726-41f6-916c-a700a348b2fd" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/e4cf785d-6726-41f6-916c-a700a348b2fd"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6ac19cc6-203d-4988-8185-71bf0e28930d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/6ac19cc6-203d-4988-8185-71bf0e28930d"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="27c0bf98-a859-4951-97e8-226c197b7180" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/27c0bf98-a859-4951-97e8-226c197b7180"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3a23f7a1-b1a1-453d-8ca0-371d3f22a001" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/3a23f7a1-b1a1-453d-8ca0-371d3f22a001"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d32e8249-ae59-409d-a739-fc68f17dd6cd" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/d32e8249-ae59-409d-a739-fc68f17dd6cd"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2665be45-16a3-4615-b84a-f85445a7c417" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/2665be45-16a3-4615-b84a-f85445a7c417"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="55baab99-d25b-434a-b6be-4a36c97845f7" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/55baab99-d25b-434a-b6be-4a36c97845f7"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4743194b-8681-4f7d-9923-f05ede329cbd" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/4743194b-8681-4f7d-9923-f05ede329cbd"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d853d241-2a0f-4740-92b4-8747d6f04945" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/d853d241-2a0f-4740-92b4-8747d6f04945"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="34a19762-928c-4d18-a0ce-1040f9777259" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/34a19762-928c-4d18-a0ce-1040f9777259"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="488eac33-697d-4b77-a3aa-b7cdc28fd05c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/488eac33-697d-4b77-a3aa-b7cdc28fd05c"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="227f9fda-42f5-4a13-9cf1-ecc8a0c8ca66" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/227f9fda-42f5-4a13-9cf1-ecc8a0c8ca66"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="e700cbd6-71e2-4b69-9d48-a18c620885da" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/e700cbd6-71e2-4b69-9d48-a18c620885da"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2dc1c831-ee49-4c85-ae1b-b58341063647" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/2dc1c831-ee49-4c85-ae1b-b58341063647"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5f21159c-bca2-4d00-bdcb-e12b5a785b55" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/5f21159c-bca2-4d00-bdcb-e12b5a785b55"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3468f88f-7c6b-4fc2-b7f6-1e6f5742c741" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/3468f88f-7c6b-4fc2-b7f6-1e6f5742c741"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="15feb03d-7b04-4311-b3dc-9cbb2f9ecde3" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/15feb03d-7b04-4311-b3dc-9cbb2f9ecde3"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9b93c48c-6626-4bd2-9489-a504d196ac9b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/9b93c48c-6626-4bd2-9489-a504d196ac9b"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4efe617b-022b-4aea-a425-d542e4898d5a" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/4efe617b-022b-4aea-a425-d542e4898d5a"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 23 Apr 2022 07:56:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/11123754#M48574</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-04-23T07:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete layout tabs with specific wildcards while keeping others</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/11124693#M48575</link>
      <description>&lt;P&gt;A different approach&amp;nbsp; have a look at &lt;A href="http://www.lee-mac.com/listbox.html" target="_blank"&gt;List Box | Lee Mac Programming (lee-mac.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use&lt;/P&gt;&lt;P&gt;(setq lst (layoutlist))&lt;/P&gt;&lt;P&gt;(setq lst&amp;nbsp;(LM:listbox "layouts to delete" lst 1))&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 02:47:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-layout-tabs-with-specific-wildcards-while-keeping-others/m-p/11124693#M48575</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-04-24T02:47:51Z</dc:date>
    </item>
  </channel>
</rss>

