Suppress / hide check in dialog

Suppress / hide check in dialog

matt_jlt
Collaborator Collaborator
516 Views
2 Replies
Message 1 of 3

Suppress / hide check in dialog

matt_jlt
Collaborator
Collaborator

I know this has been asked before but i'm hoping someone from autodesk can chime in here. I want / need to hide the check in dialog when i call the check in command.

 

ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False)

 

I understand the usual solution is send keys but this is is very unreliable for me. if the user does anything while it's running it messes it all up as the send keys is indiscriminate to which window it's applied.

 

I don't care if i have to access it via the EDM addin, I am already interfacing with the vault and retrieving / checking out the files. I just want to use the default check in function to ensure all file relationships and data etc. are checked in correctly, but the dialog is a massive pain.

 

Is there any way to access the form / command directly?

 

Thanks, Matt.

 

 

 

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

matt_jlt
Collaborator
Collaborator

Got it working,

 

I took what @JhoelForshav cooked up for the Frame gen form and changed it to suit the Check in form with a button click. worked perfectly. Thanks for posting your code, much appreciated.

 

https://forums.autodesk.com/t5/inventor-customization/wait-for-dialogue-to-load-before-running-code/...

0 Likes
Message 3 of 3

matt_jlt
Collaborator
Collaborator

I spoke too soon 😞

 

unfortunately, it works perfectly for a user manually clicking the check in form. but when i have code initialising it,

for some reason it just gets skipped and doesn't check in.

 

I can't work out why and don't have any more time for this thing. I just wish there was a better method to check a file in programmatically

 

0 Likes