vla-zoomextents query

Discussion in 'AutoCAD' started by stevej, Aug 14, 2003.

  1. stevej

    stevej Guest

    Hello all

    I appreciate I can use (vla-zoomextents (vlax-get-acad-object)) to zoom the current drawing, but I have a variable 'NewDocument' set to another drawing in the current session. Is there any way to do a zoom extents on that drawing? And why does vla-zoomextents work on the object & not the document?

    TIA

    Steve
     
    stevej, Aug 14, 2003
    #1
  2. stevej

    Doug Broad Guest

    Steve,



     



    Zoom extents only works in the current drawing window and the current



    document.  AutoCAD already knows which window that is.  If you want



    to zoom extents another document, you need to use vla-sendcommand



    or use VBA to write your application because a VBA program sits



    above the documents and can switch back and forth between documents



    without causing trouble with the VBA program.



     



    Regards,



    Doug



    "stevej" <> wrote in message news:...

    Hello all

    I appreciate I can use (vla-zoomextents (vlax-get-acad-object)) to zoom the current drawing, but I have a variable 'NewDocument' set to another drawing in the current session. Is there any way to do a zoom extents on that drawing? And why does vla-zoomextents work on the object & not the document?

    TIA

    Steve
     
    Doug Broad, Aug 14, 2003
    #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.