MJLM Posted May 11, 2022 Posted May 11, 2022 Hi, I have made my fast selection routine that collects members of a network as a chain and returning as a selection set . I would like to get the returning ss running it as transparent, that is while already being inside an other routine on an active ssget prompt, type 'my_fast_selection_commad and get the ss coming from the transparent command. From what I have tried, it seems it is not possible? Can a transparent command return anything apart from nil? Quote
Steven P Posted May 11, 2022 Posted May 11, 2022 So if I am reading this correctly you ant something like: (not in code tags since this isn't really code, just the idea) (defun c:testlisp ( / ) [Do some setp stuff] (setq MySS (ssget... get selection se) [But can type in (my_fast_selection_command) in setq MySS (my_fast_selection_command)] [do more stuff] ) I have something that will do this with an entsel, rather than a selection set I think - it might be able to be modified using SS I think using a while loop and an initget night be working something like (setq endloop "No") (initget my_fast_selection_command) (whle (= "No" endloop) (if getsting "my_fast_selection_command (progn (setq MySS (my_fast_selection_command))(setq endloop "Yes"))) (setq MySS (ssget...)) );end while Somthing like that if I remember what I did correctly - gives you smething to thinkaboutfor now anyway. Quote
BIGAL Posted May 11, 2022 Posted May 11, 2022 Maybe this example of a erase shortcut note the transparent 'ZZZ must use single quote for transparent. (defun c:zzz () (ssget "X" '((0 . "LINE")))) Erase 'zzz Enter 1 Quote
Steven P Posted May 12, 2022 Posted May 12, 2022 8 hours ago, BIGAL said: Maybe this example of a erase shortcut note the transparent 'ZZZ must use single quote for transparent. (defun c:zzz () (ssget "X" '((0 . "LINE")))) Erase 'zzz Enter That's new to me! Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.