So selecting block variable A, only in the current space would go something like this?
(ssget "_X" (if (= 1 (getvar 'cvport))(list (cons 410 (getvar 'ctab))(cons 0 "INSERT")(cons 2 A)) '((410 . "Model")(cons 0 "INSERT")(cons 2 A))))
Makes sense to me, CVPORT returns 1 or 2 based on model space or paper space. If it returns 1 the selection set filters based on 410 to the layout name and if it returns 2 the line filters based on 410 being named Model?