Freeze in Active Viewport question

mikedsjr

Usenet Archive
Joined
Dec 17, 2003
Messages
18
Reaction score
0
I don't know if my question is any different, but i will give you my situation.

We have about 4 to 7 tabs used for our construction documents, with typically 1 or 2 windows on each.

Is there a way to set up in a lisp file to checks to see the standard names we have for our tabs and then goes into the window and freeze all the layers in the active viewport of that apply to the name of that tab and continue to do that to each tab?

In otherwords, I want all the electrical, ceiling stuff and demolition frozen on my architectural plan without having to pick those layers. And so on. Our layering system is complex, though standardized.
 
yes.
It would start something like:
(foreach layout (layoutlist)
(setvar "ctab" layout) ; changes layout
(setq sset_vports (ssget "C" (getvar"extmin") (getvar"extmax") (list (cons 0 "VIEWPORT")(cons 410 (getvar"ctab"))))) (command ".vplayer" "f" "*" "S" sset_vports "" "T" lay_list "S" sset_vports "" "") ; where lay_list is the list of layers to thaw )

Of course you would have to add in a routine to determaine the variable lay_list before you got to the vplayer comamnd.

Dean

Message was edited by: dean_bourke
 
I use a reactor to check when you change layouts. When you are on "layout1", it turns layers on and off, when on "layout2" it turns different layers on and off. Works like a champ.

mikedsjr said:
I don't know if my question is any different, but i will give you my situation.

We have about 4 to 7 tabs used for our construction documents, with
typically 1 or 2 windows on each.
Is there a way to set up in a lisp file to checks to see the standard
names we have for our tabs and then goes into the window and freeze all the layers in the active viewport of that apply to the name of that tab and continue to do that to each tab?
In otherwords, I want all the electrical, ceiling stuff and demolition
frozen on my architectural plan without having to pick those layers. And so on. Our layering system is complex, though standardized.
 

Latest threads

Back
Top