lisp program to set up typical layout tabs

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, Im new to lisp and im trying to create a lisp program that goes through my typical layout tabs and sets up the layers to be frozen or thawed.
I would like to switch to each layout tab and set things up automatically
1. set to model space
2. thaw the layers needed
Leaving layer 1 on at all times for my border.
and skip error's if a layout tab is missing.
(setvar "ctab" "front elevation")(command "_.mspace")(command "vplayer" "f" "~1" "")(command "vplayer" "thaw" "e" "")
(princ))
(setvar "ctab" "rear elevation")(command "_.mspace")(command "vlayer" "f" "~1" "")(command "layer" "thaw" "er" "")
(princ))
(setvar "ctab" "right elevation")(command "_.mspace")(command "vlayer" "f" "~1" "")(command "-layer" "thaw" "es" "")
(princ))(ignore-errors)
Can anyone here help me to get started? Thanks