Get mouse track

Get mouse track

sonicer
Collaborator Collaborator
1,135 Views
1 Reply
Message 1 of 2

Get mouse track

sonicer
Collaborator
Collaborator
How can I get mouse track and what track line interselect?
0 Likes
1,136 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

You can use the Windows API to determine the mouse screen coordinates.

 

You can use the Revit API UIView class to convert them to Revit project coords.

 

You can use the element intersector to determine what elements are under the cursor.

 

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes