zoom in other Acaddocument

zoom in other Acaddocument

MakCADD
Advocate Advocate
616 Views
1 Reply
Message 1 of 2

zoom in other Acaddocument

MakCADD
Advocate
Advocate

hello,

need your help

 

i want to use zoom command in another drawing which is opened in same autocad window using vba while working in thisdrawing

 

 

 

0 Likes
Accepted solutions (1)
617 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor
Accepted solution

When you say "zoom command", it could mean 2 things: calling the built-in command "Zoom" with SendCommand() method, or calling AcadApplication.Zoomxxxx() method in your code.  Both only are applicable to active document, of course.

 

By essence, "Zoom in/out" (or "Pan", for that matter) is the visual effect of setting the current AcadViewport to a different AcadView. So, you can create an AcadView with desired target/width/height and set the view to the active viewport of the said document.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes