1. This "unblank" tool from the other thread works this way:
Command UNBLANK
..all invisible objects on the current layout changes to visible
and then the unblank-command asks for object selection..
You can select all or just a part of all objects to keep still visible!,
these objects you are not select change to invisible back.
2. How to select never selected objects "previous"
Thats wrong, the last object selection was "all invisible objects",
this object selection was done by the unblank-.command (not by the user manually).
_
That's why you have to do it 2x
First time for the unblank-command
The second time for your next step (for example command:select previous)
_
Okay, i copy the code from the other thread because i am lazy and it isn't my job to post (better) programs.
(defun c:UnBlankQuick (/ ss ss2 cnt1 tmpEnt tmpData ocmd)
; UnBlank an object by selecting it in the current tab.
; Original UnBlank from https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/visible-invisible/m-p/1229351#M171724
(setq ocmd (getvar "cmdecho"))
(setvar "cmdecho" 0)
(command "_.undo" "_end")
(command "_.undo" "_group")
(if (setq ss (ssget "_X" (list '(60 . 1) (cons 410 (getvar "ctab"))'(-4 . "<not")'(-3 ("AEC_ISOLATEDOBJECTS_XDATA"))'(-4 . "not>"))))
(progn
(setq cnt1 0)
(while (setq tmpEnt (ssname ss cnt1))
(setq tmpData (entget tmpEnt))
(entmod (subst (cons 60 0) (assoc 60 tmpData) tmpData))
(redraw tmpEnt 3)
(setq cnt1 (1+ cnt1))
)
;;;(while (setq ss2 (ssget "_:S"))
;;;(while (setq tmpEnt (ssname ss2 0))
;;;(setq tmpData (entget tmpEnt))
;;;(entmod (subst (cons 60 1) (assoc 60 tmpData) tmpData))
;;;(ssdel tmpEnt ss)
;;;(ssdel tmpEnt ss2)
;;;)
;;;)
;;;(if (/= (sslength ss) 0)
;;;(progn
;;;(setq cnt1 0)
;;;(while (setq tmpEnt (ssname ss cnt1))
;;;(setq tmpData (entget tmpEnt))
;;;(if (assoc 60 tmpData)
;;;(entmod (subst (cons 60 1) (assoc 60 tmpData) tmpData))
;;;(entmod (append tmpData (list (cons 60 1))))
;;;)
;;;(setq cnt1 (1+ cnt1))
;;;)
;;;)
;;;)
)
)
(command "_.undo" "_end")
(setvar "cmdecho" ocmd)
(sssetfirst nil ss)
(princ)
)