Thanks
I am not a lisper, so wouldn't have a clue where to start.
I don't know how viewports are identified.
Attached see example of layer states I have created (in modelspace)
and how I use them.
Attached jpeg 001 shows some of the layer states I have made
Attached jpeg 002 shows layout in model space with all layers thawed and on.
Attached jpeg 003 shows layer state "Layout_Area 1_Deck Panels Only" made current.
What I was wondering was how to use the palette to make that layer state current.
Not knowing lisp I would need to be spoon fed.
It would be wonderful if you could drop in standard layers too using the tool palette.
At the moment I have them documented on a master drawing, as text next to a line.
The text (giving the layer name) and the line are on the layer, so all I do is copy with
base point the line into a blank drawing and it automatically creates the layer.
I open a blank drawing and then pull in my blocks and layers from the master drawing,
which is far too big to use as a template (50 MB) but has all the blocks and layers in it,
as well as all my layout drawings for the last year, all in laid out in positions in space,
sequentially next to each other.
Therefore to answer your question, one example would be
layerstate name Layout_Area 1_Deck Panels Only
already saved in a directory called Autocad Layer States
I would want to restore it in model space in a new blank file
after I have inserted the layers and inserted the blocks on their correct layers.
Mike