TheSwamp

Code Red => .NET => Topic started by: Woabow on February 08, 2013, 02:28:52 AM

Title: Using TAB key to make jig rotate
Post by: Woabow on February 08, 2013, 02:28:52 AM
In this forum I found code of Gile to insert an existing block and rotate it before placing it.
http://www.theswamp.org/index.php?topic=31859.msg489421#msg489421

I'm extremely interested in this feature, I was told this wasn't possible.

As a .NET newbie I was able to copy paste the code and make it work (in Bricscad). I would like to add some functionality like really insert a DWG by given a path and DWG name and rotate it 45 degrees by hitting TAB once (and minus 45 deg at Shift-TAB), while the insertion keeps on going until ESC.

Gile is using this to determine the use of Ctrl
Code: [Select]
               System.Windows.Forms.Keys mods = System.Windows.Forms.Control.ModifierKeys;
               if ((mods & System.Windows.Forms.Keys.Control) > 0)


For the TAB I tried to modify the code to accept the TAB key, but I just do not know how to do that and wasn't able to use existing code of other examples.

I know I should start at the beginning and do some newbie tutorials, but I'm that exited I found Gile's routine I really would like to see this 45 degree rotation work. Can somebody point me in the right direction?

Title: Re: Using TAB key to make jig rotate
Post by: gile on February 08, 2013, 04:24:21 PM
Hi,

You can have a look here:
http://www.theswamp.org/index.php?topic=33483
Title: Re: Using TAB key to make jig rotate
Post by: Woabow on February 12, 2013, 07:02:00 AM
Thanks, I will take a look.