I use this macro to toggle my browser from Model to Vault, and have since IV2009, and I have always used a shortcut key combination to access it. Now that I have installed 2012, the keyboard shortcut doesn't stick. Every time I close Inventor and re-open it, I have to reassign the key combination to this macro. This equals annoying!
Anyone else had trouble with keyboard shortcuts for macros? Maybe I didn't properly implement the macro in VB? I attached a screenshot of my Default.ivb, in case that helps.
Solved! Go to Solution.
Solved by cwhetten. Go to Solution.
Hi. I have the same problem with other things. My Ilogic toolbar moves around when I open files, restart, etc, Everytime I get an error and I select never tell me this again, it comes up the next time I start Inventor. I was never able to figure out the problem. I have a question for you however, Is your install on the same drive as your windows? Widnows 7 does some strange things sometimes. We have 3 seats and mine is the only one installed on a different drive. Mine is also the only one that does this so I wonder if that could be causing it.
I found another post regarding this issue. Apparently the issue is known and may be addressed later. The other post is here:
We're having the same problem, though SP1 is already installed.
Setting a shortcut key for a macro works only during the active Inventor session, when Inventor is closed the setting is gone.
How can this be fixed?
You can use an alias that is not used. An alias sticks and a shortcut won't. (autodesk please solve this bug!!!)
The problem seems to have been fixed in version 2014.
This is no consolation to those of you on 2012 and 2013, but my sanity has been partially restored. Hopefully they won't break it again in a future release!
Cameron Whetten
Inventor 2014
I am having this same problem in IV 2013. I saved the "V" and "N" keys as separate macros, and made sure those keys were not assigned to anything else. They work fine during the open Inventor session. When I close and reopen the progam, the shortcut keys do not work at first. If I go to "Tools>Customize", the shortcuts are still saved. I then close the window and they work again. Its like the shorcuts are saved, but they are not active until I open the "Customize" window.
Is there a fix for this in 2013? If not, could I use a macro to activate these shortcuts when inventor opens?
Thank you
Hey,
I made an add-in for my macros and now I use this code to load the shortcut's:
‘assign shortcut key’s for functions in the drawingenvironment.
Private Sub oUserEvents_OnEnvironmentChange(ByVal Environment As Inventor.Environment, ByVal EnvironmentState As Inventor.EnvironmentStateEnum, ByVal BeforeOrAfter As Inventor.EventTimingEnum, ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles oUserEvents.OnEnvironmentChange
If BeforeOrAfter = EventTimingEnum.kAfter Then
If Environment.InternalName = "DLxDrawingEnvironment" Then
oBtnMacro1.OverrideShortcut = "p"
oBtnMacro2.OverrideShortcut = "a"
oBtnMacro3.OverrideShortcut = "u"
Else
oBtnMacro1.OverrideShortcut = ""
oBtnMacro2.OverrideShortcut = ""
oBtnMacro3.OverrideShortcut = ""
End If
End If
End Sub
Every macro has a Button assigned.
Grz