- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Right Click Menu
Hi
Is it possible to add a custom menu line on the Right Click menu of a drawing view? I would like to add a button where the red line currently is (or somewhere in that region)
Thanks
Nacho
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
with this piece of code:
Public Sub AddButtonToRightMouseButton(oButton As Inventor.ButtonDefinition, oCommandBar As Inventor.CommandBar)
Try
'MsgBox(oCommandBar.Controls.Item(1).DisplayName)
' Check if the context menu has the 'Home View' (formerly 'Isometric View') command
Dim oCmdBarControl As CommandBarControl
oCmdBarControl = oCommandBar.Controls.Item("AppIsometricViewCmd")
Dim ControlsCounter As Integer
ControlsCounter = oCommandBar.Controls.Count
If Not oCmdBarControl Is Nothing Then
' Add the button command before the home view command
'Call CommandBar.Controls.AddButton(m_largeButtonDataCard, oCmdBarControl.Index)
' add the buttonCommand to the end
Call oCommandBar.Controls.AddButton(oButton, ControlsCounter)
End If
Catch ex As Exception
End Try
End SubTo provide you the complete add in I need some more time.
- Regarding the Buttons
- and the commandbars
let me know if this is sufficient for the moment?
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !