<?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 a SETQ selection set be programmed to the last selection? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13126449#M6850</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, I believe that I took the request to mean saving multiple selection sets for recall, not just the previous one.&amp;nbsp; Do&amp;nbsp; you think I should add that in or let&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;&amp;nbsp;'s response cover it?&lt;/P&gt;</description>
    <pubDate>Sat, 02 Nov 2024 22:24:07 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2024-11-02T22:24:07Z</dc:date>
    <item>
      <title>Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13125324#M6844</link>
      <description>&lt;P&gt;Im not sure if Im saying that right. I use this little snippet of code in a lot of programs (with different lists of course depending on the program). As I understand it, the part that reads &amp;lt;POOL&amp;gt; and ("POOL") define the default choice in the display and the selection. Ive removed those and there is no default, you must select something. What I want to know is if there is a way to use that part of the code to make the selection whatever the last selection was, instead of a defined default or none. Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(IF (NULL TYP)&lt;BR /&gt;(PROGN (INITGET "POOL SPA THERAPY WTR-FEATURE")&lt;BR /&gt;(SETQ TYP (COND ((GETKWORD "\nSpecify Layer [POOL/SPA/THERAPY/WTR-FEATURE] &amp;lt;POOL&amp;gt;: "))&lt;BR /&gt;("POOL")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 21:55:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13125324#M6844</guid>
      <dc:creator>murmanator</dc:creator>
      <dc:date>2024-11-01T21:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13125371#M6845</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3383350"&gt;@murmanator&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should do:&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(if (null typ)
  (progn
    (initget "POOL SPA THERAPY WTR-FEATURE")
    (setq typ (cond
                ((getkword (strcat "\nSpecify Layer [POOL/SPA/THERAPY/WTR-FEATURE] &amp;lt;" (cond (*prevTyp*) ("POOL")) "&amp;gt;: ")))
                ((cond (*prevTyp*) ("POOL")))
              );cond
          *prevTyp* typ
    );setq
  );progn
);if&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 22:42:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13125371#M6845</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2024-11-01T22:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13125427#M6846</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3383350"&gt;@murmanator&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This construct should do the job.&lt;/P&gt;&lt;P&gt;What it does is save the subsequent selection set symbol name as the concatenation of the first letter of the chosen typ (P, S, T, W) and the characters "ss."&lt;/P&gt;&lt;P&gt;BTW, don't use all capitals for your initget words.&amp;nbsp; Just capitalize say the first letter, then the user can enter just "S" to choose the "Spa" option, etc.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun test ( / typ filter ss)
  (INITGET "Pool Spa Therapy Wtr-feature")
  (SETQ TYP (GETKWORD "\nSpecify Layer [Pool/Spa/Therapy/Wtr-feature] &amp;lt;POOL&amp;gt;: "))
  (cond
    ((or (not typ)(= typ "Pool")) (setq ss 'Pss))
    ((= typ "Spa")(setq ss 'Sss))
    ((= typ "Therapy")(setq ss 'Tss))
    ((= typ "Wtr-feature")(setq ss 'Wss))
  )
  (setq filter (list ...))
  (set ss (ssget "CP" filter))
  ;; Do your stuff here
  (princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 02 Nov 2024 00:06:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13125427#M6846</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-11-02T00:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13125906#M6847</link>
      <description>&lt;P&gt;Just to clarify:&amp;nbsp; By "selection," I think you mean &lt;EM&gt;&lt;STRONG&gt;choice of an option word&lt;/STRONG&gt;&lt;/EM&gt;, not the more common AutoLisp usage of the word as being about&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;object selection&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; It looks like&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;'s suggestion assumes at least in part that it's about &lt;EM&gt;object&lt;/EM&gt; selection.&amp;nbsp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5680873"&gt;@CodeDing&lt;/a&gt;&amp;nbsp;'s looks to me more like what I think you're asking about, offering your previous option choice [if there is one] as the default each time [with an initial default choice for the first time], not always the &lt;EM&gt;same&lt;/EM&gt; default.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 11:11:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13125906#M6847</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-11-02T11:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13126050#M6848</link>
      <description>&lt;P&gt;maybe this one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(setq sel_layer t)
(while sel_layer
	(progn (initget "POOL SPA THERAPY WTR-FEATURE")
		(setq sel_layer (not (setq typ (getkword "\nSpecify Layer [POOL/SPA/THERAPY/WTR-FEATURE]: "))))
	)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 04:46:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13126050#M6848</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2024-11-03T04:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13126051#M6849</link>
      <description>&lt;LI-CODE lang="general"&gt;;|Another approach is to use princ to prompt the question and
then to use a library function to manage the details of the keyword
formatting and default process.  In order to use the previously selected
keyword, you would need to start with the default set to an often used
selection or to nil.  Nil would require a selection from the user.
|;
(princ "\nSelect layer");Root of prompt without options
(setq globaltmp (gk$ "Pool Spa Therapy Wtr-feature" globaltmp));GK$ library getkword
;;What follows is what you would do with the choice such as
(Cond
  ((= globaltmp "Pool")
   ;do stuff for pool
   )
  ....
  (t (*error* "Choice not expected in layer selection.")))
;or just set the layer assuming it exists
(setvar "clayer" globaltmp)&lt;/LI-CODE&gt;&lt;P&gt;The library code I wrote over 30 years ago is:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;;get keyword with default (prompt is keyword string)------------------//
;;(gk$ "prompt" default)
(defun GK$  (PR DF / GK$TMP)
  (initget (if DF
	     0
	     1)
	   PR)
  (setq	GK$TMP
	 (getkword
	   (if DF
	     (strcat "["
		     (vl-string-translate " " "/" PR)
		     "]&amp;lt;"
		     DF
		     "&amp;gt;: ")
	     (strcat "[" (vl-string-translate " " "/" PR) "]: "))))
  (cond	(GK$TMP)
	(DF)))&lt;/LI-CODE&gt;&lt;P&gt;At the command line, the two line code (princ and setq )above looks like this the first time if globaltmp is nil&lt;/P&gt;&lt;P&gt;Select layer[Pool/Spa/Therapy/Wtr-feature]:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second time, it looks like this if Pool previously selected&lt;/P&gt;&lt;P&gt;Select layer[Pool/Spa/Therapy/Wtr-feature]&amp;lt;Pool&amp;gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 13:48:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13126051#M6849</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2024-11-02T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13126449#M6850</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, I believe that I took the request to mean saving multiple selection sets for recall, not just the previous one.&amp;nbsp; Do&amp;nbsp; you think I should add that in or let&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;&amp;nbsp;'s response cover it?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 22:24:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13126449#M6850</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-11-02T22:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13126530#M6851</link>
      <description>&lt;P&gt;Wait a second.&amp;nbsp; I think maybe others but certainly myself have this backwards.&lt;/P&gt;&lt;P&gt;What's the point of asking for a selection set name if it hasn't yet been saved?&lt;/P&gt;&lt;P&gt;I think that rather he wants to create a selection set, do some operations, and then save the selection set as a name so that later he can recall it when asked to select objects.&amp;nbsp; But I don't see a way to intercept the ssget function or even detect its use with a reactor.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 00:17:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13126530#M6851</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-11-03T00:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127425#M6852</link>
      <description>&lt;P&gt;I was assuming, based on his code, not the thread title, that he wanted to save a response as default, instead of a "selection set", that he really wanted to save a selected "response" to the set of keywords so it could serve as a default the next time the question was asked at the same point in the same command program.&amp;nbsp; If it turns out that I interpreted the question correctly, the forum manager should retitle the thread IMO. If he's really naming selection sets, which I assume is impossible, he's a better coder than me. I can just save them in symbols.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 20:03:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127425#M6852</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2024-11-03T20:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127438#M6853</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was assuming, based on his code, not the thread title, that he wanted to save a response as default, instead of a "selection set", that he really wanted to save a selected "response" to the set of keywords so it could serve as a default the next time ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That was my question in Message 4.&amp;nbsp; We have not yet heard back from&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3383350"&gt;@murmanator&lt;/a&gt;&amp;nbsp;about what they meant by the word "selection."&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 20:13:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127438#M6853</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-11-03T20:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127692#M6854</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I understand your concern, but what can only a string response do?&lt;/P&gt;&lt;P&gt;What with more than one choice, I still think that he wants to recall a selection set other than "Previous."&lt;/P&gt;&lt;P&gt;Maybe the best way is to save only a filter for each of the choices, perhaps as a global variable, or to the bulletin board, or as vlax-ldata.&amp;nbsp; However, the ssget function is very particular about the point list and filter sent to it.&amp;nbsp; F'rinstance you can't use a point list of nil (at least in 2002).&amp;nbsp; But you could get a point list (if required for C or W or CP or WP or F) within a higher function that calls ssget.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 00:35:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127692#M6854</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-11-04T00:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127806#M6855</link>
      <description>&lt;P&gt;My $0.05 sounds like use a Set function where you define the prior selection to be a chosen variable name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(set (read "pool") ss)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't use initget any more, as I have mentioned before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(if (not AH:Butts)(load "Multi radio buttons.lsp")) ; loads the program if not loaded already
(if (= but nil)(setq but 1)) 	; this is needed to set default button
(setq ans (ah:butts but "V"   '("Please choose " "Pool" "Spa" "Therapy" "Water-feature" ))) 	; ans holds the button picked value as a string&lt;/LI-CODE&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="SeaHaven_0-1730687812966.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1429186i158A51F3E9ED07F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1730687812966.png" alt="SeaHaven_0-1730687812966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 02:37:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127806#M6855</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-11-04T02:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127821#M6856</link>
      <description>&lt;P&gt;I set up macros years ago that let me set save and reuse 2 or 3 selection sets.&amp;nbsp; Today, I just use groups, usually unnamed.&amp;nbsp; As opposed to selection sets, groups are retained between drawing sessions.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 03:02:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127821#M6856</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2024-11-04T03:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127831#M6857</link>
      <description>&lt;P&gt;Good idea using groups. You can use the set to say keep making variables, (strcat "sel" (rtos x 2 0)) as many selections as you like.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 03:14:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13127831#M6857</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-11-04T03:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13128730#M6858</link>
      <description>&lt;P&gt;[I still think that by "selection" you mean "option," but for those interested in &lt;EM&gt;selection sets of objects&lt;/EM&gt;, a related topic is where you will find&amp;nbsp;&lt;STRONG&gt;SelSetStack.lsp&lt;/STRONG&gt;, &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/command-lisp-for-selecting-objects-previous-to-previous/m-p/3255358/highlight/true#M300805" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&amp;nbsp; It's for creating multiple selection sets that you can cycle through.&amp;nbsp; Read the description of how it works at Message 3 there.]&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 14:47:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13128730#M6858</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-11-04T14:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129606#M6859</link>
      <description>&lt;P&gt;So, please forgive my ignorance on the correct terminology of code and how I described my request. What I was looking to achieve is, from the user perspective, is if you run this program and pick SPA and run the program to the end, then run it again it defaults to SPA without you needing to pick it. As opposed to how I posted the code which will default to POOL every time. I will try a few of the code suggestions here. Thank you all.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 20:37:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129606#M6859</guid>
      <dc:creator>murmanator</dc:creator>
      <dc:date>2024-11-04T20:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129627#M6860</link>
      <description>&lt;P&gt;This does exactly what I was looking for. Thank you and thanks to everyone for helping.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 20:52:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129627#M6860</guid>
      <dc:creator>murmanator</dc:creator>
      <dc:date>2024-11-04T20:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129639#M6861</link>
      <description>&lt;P&gt;As you&amp;nbsp; "&lt;SPAN&gt;use this little snippet of code in a lot of programs (with different lists of course depending on the program).&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...be aware that the solution snipped uses a GLOBAL variable called *prevTyp*... - you should use a different name in other programs to&amp;nbsp;avoid interferences.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 20:58:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129639#M6861</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-11-04T20:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129641#M6862</link>
      <description>&lt;P&gt;John, thanks for the tip on capitalization. I ran into some trouble awhile back NOT using all caps where I had multiple options with the same first letter. I had to cap the second/third letters for it all to work right (there needed to be unique capitalized letters leading off each word) . From that point on I just used all caps, but I see your point.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 20:58:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129641#M6862</guid>
      <dc:creator>murmanator</dc:creator>
      <dc:date>2024-11-04T20:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can a SETQ selection set be programmed to the last selection?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129653#M6863</link>
      <description>I noticed that while testing, thanks for the tip.</description>
      <pubDate>Mon, 04 Nov 2024 21:02:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-a-setq-selection-set-be-programmed-to-the-last-selection/m-p/13129653#M6863</guid>
      <dc:creator>murmanator</dc:creator>
      <dc:date>2024-11-04T21:02:07Z</dc:date>
    </item>
  </channel>
</rss>

