TIP: Click on subject to list as thread! ANSI
echo: a_cad
to: JERRY MYER
from: PETER DERLE
date: 1996-10-27 08:49:00
subject: Selection Set Increment

 JM>  
 JM>    A question for the AutoLISP guys: when defining a Selection Set 
 JM>  using SSGET, is there any way to redefine  instead 
 JM>  of creating a new selection set each time the routine is called? I 
 JM>  tried a (setq ss1 nil) but still a new selection set was created the 
 JM>  next time...
 JM> --- FLAME v1.1
In reference to selection set. I am using on R12 the following LISP routine 
in the menu.
[SELECTION A]^p(if(/=sela nil)(setq sela sela)(setq sela(ssget)));
to clear this selection set,
[CLEAR SEL. A]^p(progn(setq sela nil)(prompt"Group A 
Cleared.")(terpri)(princ))
The print out here shows a line break, the LISP routine is intyended to be on 
one line, otherwise add a + when you reach the end of line within the AutoCad 
menu.
Have this way established 5 difference selection set. It works for me. Anyway 
let me know how it works out.
--- Maximus 3.01
---------------
* Origin: City Limits BBS (1:221/503)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.