Get the mouse coordinate without click

Get the mouse coordinate without click

Anonymous
Not applicable
1,757 Views
4 Replies
Message 1 of 5

Get the mouse coordinate without click

Anonymous
Not applicable

Is it possible to get the mouse postion without left ot right mouse button pressed/clicked?

I mean get the mouse coordinate while moving it.

0 Likes
1,758 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
 
0 Likes
Message 3 of 5

Revitalizer
Advisor
Advisor

System.Windows.Forms.Cursor.Position;




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 4 of 5

augusto.goncalves
Alumni
Alumni
This is a tricky one. The Windows Cursor Position (mentioned above) will return the screen coordinate, where from 0,0 to your screen resolution. This is not the project coordinate.

In fact the project view on Revit is not complex, it depends on the view... or the current view can be a schedule...

Anyway, this is not exposed on Revit (project coordinate at a given random time).

But the real question is what you need here, can you provide more details? Maybe we have an alternative... is it during any command?
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 5 of 5

Anonymous
Not applicable
Dear Augusto,
See my another post First.
http://forums.autodesk.com/t5/revit-api/how-to-let-revit-show-a-rectangle-when-picking-points/td-p/5...

What I really want to do is to draw a rectangle during creating my object to indicate user where the object will be placed (for a good user experience ).Just like the appearance when creating a wall.

As Jeremy's answer, I suppose revit cannot support it.
So for a walkaround solution,I think if I can get the moving cursor coordinate of the view , could I draw a rectangle myself?

Is my information enough?Sorry for my english...

0 Likes