I have a lisp that will run a series of commands on multiple layouts which have standard layout names, problem is i am switching to each layout by specifying the layout name, but occasionally some of the layouts will be removed. so the lisp is running commands in error on those missing layouts.
Does anyone know a better method than whay i am using. i was thinking somthing like