Posts: 811
Registered: ‎06-08-2007
Message 1 of 4 (292 Views)

zoom by window in viewport

292 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.

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

Re: zoom by window in viewport

10-23-2012 05:39 AM in reply to: wang890
With Regards,
ADN Support Specialist
Posts: 666
Registered: ‎03-21-2011
Message 4 of 4 (135 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.








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

Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community