lisp2arx
Visual Programming for AutoLisp
Mathématiques en programmation Lisp..
doc2cpp,doc2lsp, sld2lsp, bmp2dcl,
free__GifCcapture for all-CAD'platforms..
Ticks=tldr use (cons 410 (getvar 'ctab)) with your ssget to limit your selection set.
The only chance currently, to get around this problem, is to also check the 410 dxf group cde and compare with current layout; when using (ssget), the filter list should also contain (list 410 (getvar "CTAB") to prevent selecting entities from other layouts.
But even Acad has a very strange problem here - unfortunately, that (similar) issue comes very rarely, but as verified with other developers, some mysterious problems are caused by that similar issue in Acad as well.