OnCloseDocument grayes out vault buttons

OnCloseDocument grayes out vault buttons

joerituijn
Advocate Advocate
392 Views
1 Reply
Message 1 of 2

OnCloseDocument grayes out vault buttons

joerituijn
Advocate
Advocate

Hi,

 

I have made an addin that pops up when the user closes a file that is not yet in Vault. The idea is to send a reminder to the user that the file they're closing is not in Vault and needs to be added. It frequently happens that files only exist locally. 

 

I don't need the checkin functionality itself, I just want to cancel the close event. So I use the OnCloseDocument event and check if the file is in Vault. If that is not the case, a message pops up asking the user if he wants to close the document or not. I set the handlingcode to 'eventcanceled' and that all works fine. But after the close event is cancelled and the document remains open, all Vault buttons are grayed out and I can't check the file in. I have to switch to a different file and come back to the one in question to get the buttons 'active' again. Any idea how to avoid that?

 

Regards,

Joeri

0 Likes
393 Views
1 Reply
Reply (1)
Message 2 of 2

wayne.brill
Collaborator
Collaborator

Hello Joeri,

 

I am able to recreate this behavior as you describe. I will be logging a ticket with Vault Add-In engineering.

 

I am not finding a work around for it using the Inventor API and the Vault Add-In does not have an API to use.

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

0 Likes