active layout?

Discussion in 'AutoCAD' started by mark, Sep 14, 2004.

  1. mark

    mark Guest

    hi

    example, when in model space, tilemode 0
    will shift to the last active layout, how to know
    which one is/was the last active one, and is it
    possible to change it to a different one,
    without having to ...
    (getvar "CTAB" "layoutX")(getvar "CTAB" "Model")

    TIA
     
    mark, Sep 14, 2004
    #1
  2. mark

    Doug Broad Guest

    I believe you can get the name from the
    paperspace block via activex.
    (vla-get-name(vla-get-layout(vla-get-paperspace doc)))
     
    Doug Broad, Sep 14, 2004
    #2
  3. mark

    mark Guest

    but how to 'set' to a layout, i do not think the following works

    (vla-put-name(vla-get-layout(vla-get-paperspace doc)) layoutname)

    thanks
     
    mark, Sep 14, 2004
    #3
  4. mark

    Paul Turvill Guest

    (setvar "ctab" "layoutX")
    .... not (getvar ...)
    ___
     
    Paul Turvill, Sep 14, 2004
    #4
  5. mark

    mark Guest

    u r right, sorry about that...
    what i am looking for is (setvar "CTAB" layoutname)
    but without the graphics switching to that layout,
    just make it the active in case i switch to paperspace

    thanks
     
    mark, Sep 14, 2004
    #5
  6. mark

    Doug Broad Guest

    Mark,
    Why would you want to do that? I prefer to leave decisions
    about which layout to make active up to the drafter.

    If you really want to control that, you might be able to rename the
    *paper_space block to *paper_space# and then rename the selected
    block of the layout to *paper_space.

    I don't recommend this. I'm not sure that it will work.

    If you want to go directly to a particular layout, then use (setvar "ctab" ...)
    or (vla-put-activelayout....)
     
    Doug Broad, Sep 14, 2004
    #6
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.