D.S

adndevblog.typepad.com

Modify Ribbon and Menu items - Manufacturing DevBlog

Modify Ribbon and Menu items - Manufacturing DevBlog Manufacturing DevBlog The resource for software developers working with Design, Lifecycle and Simulation technologies from Autodesk. Home Subscribe Follow Useful Links Autodesk About this Blog « Autodesk Vault Plug-in Wizard Helps Creating Vault Plug-in More Easily | Main | Simple Exploration on CAM Simulation » 01/15/2014 Modify Ribbon and Menu items By  Adam Nagy Just like in other Autodesk products, in Inventor as well the same library is used to present a Ribbon interface: AdWindows.dll This provides a public API under the namespace Autodesk.Windows Here is an example of using it inside Revit: http://thebuildingcoder.typepad.com/blog/2011/02/pimp-my-autocad-or-revit-ribbon.html It's not a fully supported approach though, since some functions like adding a command button to the Ribbon are not supported - it would be difficut to properly hook up a control created this way to an Inventor command. For that you would need to use the Inventor API. So when using it, take care and make sure that everything is working as expected. E.g. the following VB.NET code could be used to hide the Options button in the Application Menu: ' 1) Need to reference AdWindows.dll from ' <Inventor Install Folder>\bin ' 2) Set it to "Copy Local" = "False" Dim menu As Autodesk.Windows.ApplicationMenu = Autodesk.Windows.ComponentManager.ApplicationMenu menu.OptionsButton.IsVisible = False Note: when referencing AdWindows.dll the project will require other dependencies as well that the compiler will warn you about. You'll simply have to add a reference to those Windows .NET assemblies as well: PresentationCore, PresentationFramework, WindowsBase and System.Xaml Posted at 05:22 AM in Adam Nagy , Inventor | Permalink | | | Comments Modify Ribbon and Menu items By  Adam Nagy Just like in other Autodesk products, in Inventor as well the same library is used to present a Ribbon interface: AdWindows.dll This provides a public API under the namespace Autodesk.Windows Here is an example of using it inside Revit: http://thebuildingcoder.typepad.com/blog/2011/02/pimp-my-autocad-or-revit-ribbon.html It's not a fully supported approach though, since some functions like adding a command button to the Ribbon are not supported - it would be difficut to properly hook up a control created this way to an Inventor command. For that you would need to use the Inventor API. So when using it, take care and make sure that everything is working as expected. E.g. the following VB.NET code could be used to hide the Options button in the Application Menu: ' 1) Need to reference AdWindows.dll from ' <Inventor Install Folder>\bin ' 2) Set it to "Copy Local" = "False" Dim menu As Autodesk.Windows.ApplicationMenu = Autodesk.Windows.ComponentManager.ApplicationMenu menu.OptionsButton.IsVisible = False Note: when referencing AdWindows.dll the project will require other dependencies as well that the compiler will warn you about. You'll simply have to add a reference to those Windows .NET assemblies as well: PresentationCore, PresentationFramework, WindowsBase and System.Xaml View the entire comment thread. Please enable JavaScript if you would like to comment on this blog. Search Submit Mfg DevBloggers Adam Nagy Augusto Goncalves Balaji Ramamoorthy Daniel Du Philippe Leefsma Sajith Subramanian Vladimir Ananyev Wayne Brill Xiaodong Liang February 2017 Sun Mon Tue Wed Thu Fri Sat       1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28         Autodesk Blogs ADN DevBlog - AEC Our DevBlog for Revit, Navisworks, AEC and BIM technology APIs. ADN DevBlog - AutoCAD Our DevBlog for AutoCAD and other platform technology APIs. Forge Developer Blog Our DevBlog for Cloud and Mobile technologies with a strong emphasis on the Autodesk Forge APIs. ADN DevBlog - Infrastructure Modeling Our DevBlog for Infrastructure Modeling technology APIs. ADN DevBlog - Manufacturing Our DevBlog for Design, Lifecycle and Simulation technologies. Around the Corner Cyrille Fauvel's Maya platform developer blog - Autodesk Media and Entertainment technology. Civilized Development Isaac Rodriguez's AutoCAD Civil 3D developer blog Dances with Elephants Jim Quanci's blog on partnering with large companies. It's All Just Ones and Zeros Doug Redmond's Vault developer blog Mod the Machine Brian Ekins' and Adam Nagy's Inventor developer blog The 360 View Mikako Harada's BIM 360 developer blog The 3D Web Coder Jeremy Tammik's web and mobile programming blog The Building Coder Jeremy Tammik's Revit developer blog Through the Interface Kean Walmsley's AutoCAD developer blog Yet more on autodesk.com ... Central blog list on autodesk.com Share Recent Posts Export to 3D PDF C++ Example How to reference the AutoCAD COM API in an iLogic rule Fusion API: Add Simple Extrude Feature and Add by Input Fusion API: Manage Participant Bodies Fusion API: Default Paths to Load Add-In Fusion API: HTTP Request in Fusion 360 by Python Fusion API: Attribut