Freeze in Active Viewport question

Discussion in 'AutoCAD' started by mikedsjr, Dec 17, 2003.

  1. mikedsjr

    mikedsjr Guest

    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.
     
    mikedsjr, Dec 17, 2003
    #1
  2. mikedsjr

    dean_bourke Guest

    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
     
    dean_bourke, Dec 17, 2003
    #2
  3. mikedsjr

    UserName Guest

    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.


    typically 1 or 2 windows on each.
    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?
    frozen on my architectural plan without having to pick those layers. And so
    on. Our layering system is complex, though standardized.
     
    UserName, Dec 19, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.