Next Layout Tab in Script File

Discussion in 'AutoCAD' started by paddyuk, Mar 7, 2005.

  1. paddyuk

    paddyuk Guest

    Hi guys.

    Find below a script i've written to freeze several named layers within paper space.

    **************************

    _.mspace
    vplayer
    f
    "C-Conveyance Shared Access 23"
    c
    f
    "C-Conveyance Shared Access 24"
    c
    f


    _.PSPACE

    *****************************

    The problem is the drawing contains 104 layout tabs!

    Can you advise how the script is edited to select the next layout tab first, then issue the set of freeze commands.

    I'd like to end up with a script file that could be run without any manual input

    Yours hopefully

    Leigh
     
    paddyuk, Mar 7, 2005
    #1
  2. paddyuk

    sdanis Guest

    Try this:
    (foreach item (layoutlist)
    do what ever
    );;foreach
     
    sdanis, Mar 7, 2005
    #2
  3. What about to use the all viwports instead of current?

    or this

    (foreach Layout (layoutlist)
    (setvar "ctab" Layout)
    (command "vplayer" "f" "C-Conveyance Shared Access 23" "f" "C-Conveyance
    Shared Access 24" "c" "f")
    )
     
    Marco Jacinto, Mar 8, 2005
    #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.