.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

zoom by window in viewport

3 REPLIES 3
Reply
Message 1 of 4
wang890
537 Views, 3 Replies

zoom by window in viewport

Hi, everyone

i have some layouts with one viewport per page, and i am trying to make a small program to zoom to an incremental window from left to right for some model space cross sections for highways.

anybody has any code to go into each layout, find the viewport and zoom by a window? i can derive from there.

i don't feel like programming today and i hate this job.

Thanks everyone.

Bob
Stantec
Dell Precision 5530, Prism M320PU, C3D 14/17/19
3 REPLIES 3
Message 2 of 4
varadan01
in reply to: wang890

Do u have the code for this Question. Now i hate my job too smileysad:

With Regards,
GVaradarajan
Message 3 of 4
varadan01
in reply to: wang890

 
With Regards,
GVaradarajan
Message 4 of 4
Balaji_Ram
in reply to: varadan01

Hi Varadarajan,

 

Here are a few Devblog posts on related to setting the view parameters of a viewport. You can change the blog post that sets the viewport to show the db extents to show a window instead.

 

http://adndevblog.typepad.com/autocad/2012/08/changing-zoom-in-paperspace-viewport.html

 

http://adndevblog.typepad.com/autocad/2012/10/zooming-to-drawing-extents-for-a-viewport-without-send...

 

http://adndevblog.typepad.com/autocad/2012/08/create-paper-space-viewports.html

 

Hope this helps and also hope it makes you like your job 🙂



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost