Revit API

Active Member
Posts: 10
Registered: ‎08-02-2011
Message 1 of 2 (293 Views)

Get Mouse Coordinates

293 Views, 1 Replies
12-19-2011 03:05 AM

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,


Active Member
Posts: 10
Registered: ‎08-02-2011
Message 2 of 2 (292 Views)

Re: Get Mouse Coordinates

12-19-2011 03:27 AM in reply to: padraig.oleary

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


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Revit Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Revit helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Revit