MView lsp

Discussion in 'AutoCAD' started by Tom Stright, May 14, 2004.

  1. Tom Stright

    Tom Stright Guest

    I'm trying to create a button that will lock all viewports in a drawing that
    are located in all paperspace tabs...

    so far I have...

    MV;L;ON;ALL;;;

    Seems that that will only lock the viewports inthe current tab. What am I
    doing wrong?

    And what would be a good study guide to help me learn this?

    TIA

    Tom
     
    Tom Stright, May 14, 2004
    #1
  2. Tom Stright

    Joe Burke Guest

    Tom,

    You could call a lisp function like this from the button.

    (defun c:LockAll ( )
    (foreach x (layoutlist)
    (command "layout" "set" x)
    (command "mview" "lock" "on" "all" "")
    )
    )

    Joe Burke
     
    Joe Burke, May 17, 2004
    #2
  3. Tom Stright

    Tom Stright Guest

    Thanks, thats a better Idea


     
    Tom Stright, May 18, 2004
    #3
  4. Tom Stright

    JRWalker Guest

    Cycle to the next layout (make it current) then do ...
     
    JRWalker, May 19, 2004
    #4
  5. Tom Stright

    OLD-CADaver Guest

    OLD-CADaver, May 20, 2004
    #5
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.