.NET

Reply
Valued Contributor
PowerKiKi2
Posts: 81
Registered: ‎11-15-2005
Message 11 of 13 (83 Views)

Re: How to detect zoom

01-21-2009 05:48 AM in reply to: dubinskyv
Your simplified solution is not correct. As I suggested in a previous post there is a problem when the area displayed to the end-user is not a square. That is almost always the case. That would usually be a wide rectangle. (I actually use this approximation as a temporary workaround)

But the code you provide may be the answer. I don't have time to try it now, but I assume vprt.Height and vprt.Width would be enough to know the get the real size displayed to the end-user.
Valued Contributor
PowerKiKi2
Posts: 81
Registered: ‎11-15-2005
Message 12 of 13 (83 Views)

Re: How to detect zoom

01-21-2009 05:53 AM in reply to: dubinskyv
What if the wheel function is assigned to another button/keys in AutoCAD configuration ? (Is it even possible to change that ?)
Contributor
bobbydehero
Posts: 15
Registered: ‎01-12-2009
Message 13 of 13 (83 Views)

Re: How to detect zoom

01-21-2009 09:25 AM in reply to: dubinskyv
It works perfectly and good enough for me to determine whether a zoom has occured from a saved state, which was the original posted issue - a couple of years back :smileyhappy:
Hope you can make use of my sample code anyway.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

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