| Article | 60001969 |
| Type | Wish |
| Product | Engine |
| Date Added | 6/19/2013 12:00:00 AM |
| Fixed | (6/26/2013 12:00:00 AM) |
| Submitted by | Bertrand Munier |
Summary
I would like to be able to define the control keys of the getUserWalkThrough Action.
Solution
In version 6026 a new property has been added to the vdDocument object named WalkThroughKeys. This is a property to a static class that is used to define the keyboard keys used in Walkthrough action.
The following Keys can be changed.
public class WalkThroughKeysClass
{
summary> Key to increase movement speed , default key is Keys.Add.
public System.Windows.Forms.Keys MovementSpeedIncrease
summary> Key to decrease movement speed , default key is Keys.Subtract.
public System.Windows.Forms.Keys MovementSpeedDecrease
summary> Key to enable/disable fly mode , default key is Keys.F;
public System.Windows.Forms.Keys Fly
summary> Key to move up , default key is Keys.C;
public System.Windows.Forms.Keys Up
summary> Key to move down , default key is Keys.Space;
public System.Windows.Forms.Keys Down
summary> Key to move forward , default key is Keys.W;
public System.Windows.Forms.Keys Forward
summary> Key to move backward , default key is Keys.S;
public System.Windows.Forms.Keys Backward
summary> Key to sidestep left , default key is Keys.A;
public System.Windows.Forms.Keys sidestepLeft
summary> Key to sidestep right , default key is Keys.D;
public System.Windows.Forms.Keys sidestepRight
}
Example in c#
vdFramedControl.BaseControl.ActiveDocument.WalkThroughKeys.Forward = Keys.T;
vdFramedControl.BaseControl.ActiveDocument.WalkThroughKeys.Backward = Keys.G;
vdFramedControl.BaseControl.ActiveDocument.WalkThroughKeys.sidestepLeft = Keys.F;
vdFramedControl.BaseControl.ActiveDocument.WalkThroughKeys.sidestepRight = Keys.H;
vdFramedControl.BaseControl.ActiveDocument.WalkThroughKeys.Fly = Keys.E;
vdFramedControl.BaseControl.ActiveDocument.ActionUtility.getUserWalkThrough(0.5);
Example in vb6
Dim doc As VectorDraw_Professional.vdDocument
Set doc = VDraw1.ActiveDocument.WrapperObject
doc.WalkThroughKeys.Forward = Keys_T
doc.ActionUtility.getUserWalkThrough 0.5
