Help on Jig - Result angle is by mouse or keyboard?

Help on Jig - Result angle is by mouse or keyboard?

ProfWolfMan
Advocate Advocate
866 Views
1 Reply
Message 1 of 2

Help on Jig - Result angle is by mouse or keyboard?

ProfWolfMan
Advocate
Advocate

Hi all,

 

I am using jig to get orientation angle of a block reference by below steps.

 

Dim rot As RotateBlockJig = New RotateBlockJig(br, ucsRot)
                        Autodesk.AutoCAD.Internal.Utils.SetFocusToDwgView()

Dim pr As PromptResult = ed.Drag(rot)

 Is there is anyway or idea to find whether the return angle value is by

 

 i) 'mouse click on drawing area'

or

ii) 'keyboard entry on command prompt'?

 

Many thanks for reading.

 

 

Thanks & Regards,
G
0 Likes
867 Views
1 Reply
Reply (1)
Message 2 of 2

DiningPhilosopher
Collaborator
Collaborator

You can try handling the Editor's PointMonitor event.

 

The event arguments has a History property that is a set of flags indicating a variety of things about each event, including whether input was typed or picked.

0 Likes