Jigging with SHIFT, CTRL and Mouse Wheel Functionality (AutoCAD .net API)

If writing software then make it easy for your users.
User Input is critical. You gotta make the user experience amazing.

Any AutoCAD programmer knows that things which an algorithm may take a million years and infinite computational power to do can sometimes be easily done by a human being instantly. In the same way it is sometimes much easier to give a human being the ability to choose: then you can get an optimum result without complex algorithms.

This post is a code snipped of how you can utilise the CTRL + SHIFT + Mouse Wheel (up/down) mechanisms in order to produce different desired results when operating a custom jig.

Here is the code:

 

So when the appropriate user input happens, then the jig can respond accordingly. Yes it’s true – the OOP purists will say: “you’re passing a concrete type in there” – I can always change it later if I want.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *