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

    Autodesk Navisworks API

    Reply
    New Member
    Posts: 1
    Registered: ‎08-23-2012

    navis 2012 .net api: how to use contextMenu with viewControl

    120 Views, 1 Replies
    08-23-2012 12:41 AM

    hi there,

    i'm trying to use a context menu with the viewControl. i have a fine context menu and i have assigned it to the contextMenu property of the viewControl. if i rightClick into the control nothing happens.

    does someone know of an example that employs context menus with the navis .net view control?

    thanks for the help, and kind regards

    Please use plain text.
    ADN Support Specialist
    xiaodong.liang
    Posts: 805
    Registered: ‎06-12-2011

    Re: navis 2012 .net api: how to use contextMenu with viewControl

    08-28-2012 01:59 AM in reply to: abo815

    Unfortunately, the overridden methods which derive from Windows control have not been implemented in .NET control of Navisworks. So you cannot use these methods, including mouse events, key events etc.

     

    The only practice I can think of is to take advantage of the context menu events of the Form.



    Xiaodong Liang
    Developer Technical Services
    Autodesk Developer Network

    Please use plain text.