Inventor Customization

Inventor Customization

Reply
Distinguished Contributor
djreesing
Posts: 160
Registered: ‎12-23-2008
Message 1 of 2 (243 Views)
Accepted Solution

OnFileSaveAsDialog event won't fire

243 Views, 1 Replies
11-30-2012 04:15 AM

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?

Distinguished Contributor
djreesing
Posts: 160
Registered: ‎12-23-2008
Message 2 of 2 (237 Views)

Re: OnFileSaveAsDialog event won't fire

11-30-2012 05:16 AM in reply to: djreesing
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.