Hi there,
In my vb.net addin I use the FileUIEvents.OnFileSaveAsDialog event. In Inventor 2011 this worked fine, but now in 2013 this event doesn't fire anymore.
I've declared the variable:
Public WithEvents oFileUIEvents As FileUIEvents
And in the activate sub I have this code:
oFileUIEvents = m_inventorApplication.FileUIEvents
I've tried to delete the event and recreate it, it now looks like this:
Private Sub oFileUIEvents_OnFileSaveAsDialog(ByRef FileTypes() As String, SaveCopyAs As Boolean, ParentHWND As Integer, ByRef FileName As String, Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles oFileUIEvents.OnFileSaveAsDialog MsgBox("test") End Sub
But it just doesn't work. Is there something changed in the behavior of this event after Inventor 2011? Are there more people having problems with this? I'm kinda stuck here so any help would be appreciated.
Daniël
UPDATE:
I just created a new addin with the wizard and put the same code in there. Strangely it does work now, anyone an idea what can prevent the event from firing in my existing addin?
Solved! Go to Solution.
Solved by djreesing. Go to Solution.
Found the answer myself!
See the link below