JM> A question for the AutoLISP guys: when defining a Selection
JM> Set using SSGET, is there any way to redefine
JM> instead of creating a new selection set each time the routine is
JM> called? I tried a (setq ss1 nil) but still a new selection set
JM> was created the next time...
PD> In reference to selection set. I am using on R12 the following
PD> LISp routine in the menu.
PD> [SELECTION A]^p(if(/=sela nil)(setq sela sela)(setq
PD> sela(ssget)));to clear this selection set,
PD> [CLEAR SEl. A]^p(progn(setq sela nil)(prompt"Group A
PD> Cleared.")(terpri)(princ))
PD> Have this way established 5 difference selection set. It works
PD> for me. Anyway let me know how it works out.
Extracting the salient features of your macros (as I understand
them), at the command prompt I repeatedly issued:
(SETQ sela nil)
(SETQ sela sela)
(SETQ sela (SSGET))
Each time I issued the 3rd line with "ssget", the return response
was still incrementing selection sets, ie. by responding with
. The variable name "sela" stays constant, but
additional selection sets are being created.
--- FLAME v1.1
---------------
* Origin: The Manufacturing Technology BBS! // 210-821-6356 (1:387/783)
|