selecting MS viewports with Lisp

Discussion in 'AutoCAD' started by George Drayton, Sep 8, 2004.

  1. Can some please give some help with a lisp method of selecting a viewport in
    model space (making it active) so that I can control the viewing direction
    and shademode for each viewport. To do this manually you have to click in
    each viewport - what is the equivalent in lisp? Alternatively is there a
    way with lisp of donig the equivalent of activating the dialog box-based
    "vport" command and choosing 3D setup and "four equal" configuration ?
     
    George Drayton, Sep 8, 2004
    #1
  2. George Drayton

    Paul Turvill Guest

    Similar to PS viewports: use the CVPORT command / variable. Normally when
    AutoCAD creates MS viewports it numbers them CCW starting from the lower
    right, with the first one being #2.

    So, in LISP, (setvar "cvport" 2) will activate the lower right one, (setvar
    "cvport" 3) will activate the next one in a CCW direction, and so on.
    ___
     
    Paul Turvill, Sep 9, 2004
    #2
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.