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#msg489421I'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
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?