getting vport info from reactors

Discussion in 'AutoCAD' started by Mark, Sep 12, 2003.

  1. Mark

    Mark Guest

    hello, i'm attempting to write a reactor to change a few things when a user
    switches ps vports

    using (vlr-sysvar-reactor nil '(:)vlr-sysVarChanged . myfunction

    i can tell that CVPORT has changed to 2, 3, etc. at this point i'm stuck as
    to find how to get info about the current vport, such as current scale, etc.

    thank you for your time,
    Mark
     
    Mark, Sep 12, 2003
    #1
  2. I don't know much about reactors but...

    (setq *doc* (vla-get-activedocument (vlax-get-acad-object)))
    #<VLA-OBJECT IAcadDocument 00eda31c>

    (vla-get-customscale (vla-get-activePviewport *doc*))
    0.221826
     
    Jason Piercey, Sep 13, 2003
    #2
  3. Mark

    Mark Ingram Guest

    thank you Jason

     
    Mark Ingram, Sep 15, 2003
    #3
  4. You're welcome.
     
    Jason Piercey, Sep 15, 2003
    #4
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.