Lisp to save a named layer draworder per viewport layout

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Looking for a lisp routine that will allow me to be inside a viewport and arrange layer state including layer draworder (front & back) the way I want for that viewport, then allow me to save that layer state including layer draworder to a name.
Then be able to go to other viewport layouts and arrange the layers as I need them and save those to another name.
Then be able to switch back and forth to my various viewport layouts and restore one of my named layer states that I created. (note: the restore needs to be able to adjust the layer draworder)
Why we need this:
In our drawing files we have several viewport layouts that represent our plan sheets, Site Plan, Utility Plan, Grading Plan, Erosion Control Plan, etc. etc. We use a lot of layer screening for different objects on different sheets for plotting and in order for them to look decent we are always having to go into each layout and isolate objects and move them to the back or to the front then plot, then go to the next layout and again move objects to the front or the back and plot, etc. etc. It would be nice if we could set the draworder up in each viewport layout and save them so that when we need to plot a particular sheet we could just go to that viewport layout and somehow restore a named layer draworder that we had previously saved.
Does anyone know if a lisp exists that does something like this, can it even be done?