Author Topic: Using TAB key to make jig rotate  (Read 1325 times)

0 Members and 1 Guest are viewing this topic.

Woabow

  • Newt
  • Posts: 56
Using TAB key to make jig rotate
« 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?


gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: Using TAB key to make jig rotate
« Reply #1 on: February 08, 2013, 04:24:21 PM »
Speaking English as a French Frog

Woabow

  • Newt
  • Posts: 56
Re: Using TAB key to make jig rotate
« Reply #2 on: February 12, 2013, 07:02:00 AM »
Thanks, I will take a look.