vla-zoomextents query

stevej

Usenet Archive
Joined
Nov 4, 2000
Messages
15
Reaction score
0
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
 
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:

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
 

Latest threads

Back
Top