OnSaveEvents - Two different Addins with two different OnSaveEvents

OnSaveEvents - Two different Addins with two different OnSaveEvents

Anonymous
Not applicable
430 Views
2 Replies
Message 1 of 3

OnSaveEvents - Two different Addins with two different OnSaveEvents

Anonymous
Not applicable

We have two different customized Addins. One from our PDM-System and one of our own.

Each Addin fired by OnSaveEvent, eventtime kbefore and the HandlingCodeEnum is set to kEventNotHandled.

 

If both Addins active and I save an Inventor-File Inventor send another "Save Changes to ..." on Close this file.

Why?

There is no OnSaveEvent with eventtime kafter.

Our own addin only make changes on iProperties.

 

I don't know what happend and how I can pass the save-message.

0 Likes
431 Views
2 Replies
Replies (2)
Message 2 of 3

Jef_E
Collaborator
Collaborator

It's really hard to do Question & Answer when the question is not even near to complete.

 

Please provide some code that we can examine..



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
0 Likes
Message 3 of 3

adam.nagy
Autodesk Support
Autodesk Support

Hi Marco,

 

Yes, if you could clarify things further that would be useful.

 

If I understand you correctly, then you have two add-ins and they both only handle the kBefore version of OnSave event.

Is that what you are saying?

 

If the save dialog pops up when you want to close the document then it is Dirty, so it needs saving.

It might be that the changes you made to the document affect other parts of it that can only be updated after the save operation. So even though you just saved it, as a result of your actions inside OnSave (kBefore) the document will be Dirty again after save.

 

Cheers,

 



Adam Nagy
Autodesk Platform Services
0 Likes