.NET

Reply
Mentor
wang890
Posts: 825
Registered: ‎06-08-2007
Message 1 of 4 (302 Views)

zoom by window in viewport

302 Views, 3 Replies
06-25-2009 10:45 AM
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
Civil 3D 2012
Work: Xeon W3503, 12GB, Quadro 2000, Yamakasi Sparta 301 + Dell PH2211
Home: 3930k, 12GB, GTX 590, U3011, QX2710
Active Contributor
varadan01
Posts: 47
Registered: ‎03-16-2012
Message 2 of 4 (173 Views)

Re: zoom by window in viewport

10-23-2012 05:38 AM in reply to: wang890

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

With Regards,
GVaradarajan
Active Contributor
varadan01
Posts: 47
Registered: ‎03-16-2012
Message 3 of 4 (173 Views)

Re: zoom by window in viewport

10-23-2012 05:39 AM in reply to: wang890
 
With Regards,
GVaradarajan
ADN Support Specialist
Balaji_Ram
Posts: 700
Registered: ‎03-21-2011
Message 4 of 4 (145 Views)

Re: zoom by window in viewport

10-29-2012 08:31 AM 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 :smileyhappy:



Balaji
Developer Technical Services
Autodesk Developer Network

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.