• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Revit API

    Reply
    Active Member
    padraig.oleary
    Posts: 10
    Registered: ‎08-02-2011

    Get Mouse Coordinates

    226 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,

    Patrick

    Please use plain text.
    Active Member
    padraig.oleary
    Posts: 10
    Registered: ‎08-02-2011

    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

     

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

     

    Please use plain text.