Manipulate viewport with lisp

Discussion in 'AutoCAD' started by Chad, Jul 8, 2003.

  1. Chad

    Chad Guest

    Is there a "command" or other method I can use to change the properties of a
    viewport using lisp? All of the variables are read-only, and none of the
    commands seems to allow me to change the properties I want. I want to be
    able to change the viewport height and center for both paperspace and
    modelspace.

    Any suggestions?

    Thanks,
    Chad
     
    Chad, Jul 8, 2003
    #1
  2. Chad

    Mike Weaver Guest

    Chad,
    Viewports can be manipulated with visual lisp (AutoLISP using the active-x
    extensions) but not with plain autolisp and/or the lisp command function.
    For an example of using vlisp to change the layer of a viewport, search the
    newsgroup for a thread titled: "Changing Viewports to Diff layer, Entmod not
    working?" (thread started 27 June). One of the posts in this thread
    includes a routine to change a viewport layer. While it doesn't
    specifically solve your problem, it would't be too difficult to modify it to
    change the viewport height and centerpoint in paperspace. Changing the view
    settings in model space may be a bit more complicated, that's something I
    haven't done.

    HTH,
    Mike Weaver
     
    Mike Weaver, Jul 8, 2003
    #2
  3. Chad

    Mark Propst Guest

    (vla-put-height
    (vla-put-center
    ?
     
    Mark Propst, Jul 8, 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.