Get Mouse Coordinates

Get Mouse Coordinates

Anonymous
Not applicable
1,228 Views
1 Reply
Message 1 of 2

Get Mouse Coordinates

Anonymous
Not applicable

In System.Windows.Forms – I can get the coordinates relative to the upper-left corner of the screen using the Control.MousePosition Property.

 

How can I get the XYZ coordinates of the mouse on a revit drawing?

 

(This question is related to my previous question!) Any suggestions on how to translate the Control.MousePosition windows coordinates to a revit drawing would also be appreciated as a work around.

 

Many thanks,

Patrick

0 Likes
1,229 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

We want to use the AutoCAD API ability to interactively control polyline creation using the Revit equivalent of a Jig.

 

Here is the AutoCAD implementation

 

http://through-the-interface.typepad.com/through_the_interface/2006/11/controlling_int_1.html

 

0 Likes