Suppress check out dialog on SaveAs

Suppress check out dialog on SaveAs

Skadborg.NTI
Advocate Advocate
1,298 Views
7 Replies
Message 1 of 8

Suppress check out dialog on SaveAs

Skadborg.NTI
Advocate
Advocate

On a Vaulted file:

If I use iLogic, ThisDocument.Document.SaveAs, then I am prompted to check out the original file (I am also prompted if I try so save via GUI).

Can this check out prompt be suppressed in the iLogic rule only? There are absolutly no reason to check it out and it disturbs the workflow:

 

 

SaveAs, iLogic.png

 

0 Likes
1,299 Views
7 Replies
Replies (7)
Message 2 of 8

sajith_subramanian
Autodesk Support
Autodesk Support

Hi @Anonymous,

 

Inventor does provide an API ( ThisApplication.SilentOperation) to suppress most dialogs but I don't think it would work for this one.

 

Have you considered turning off that prompt manually. (Vault tab -> Vault Options -> Prompts ). Would that work for you?

 

 Capture.PNG

 

Regards,

Sajith


Sajith Subramanian
Autodesk Developer Network
0 Likes
Message 3 of 8

Skadborg.NTI
Advocate
Advocate

Correct - ThisApplication.SilentOperation does not suppress Vault dialogs.

I still want Inventor/Vault to prompt the user during normal operation. It is only when I call SaveAs that I would like to suppress the prompt, so turning the prompt off, as suggested unfortunately doesn't work for me.

0 Likes
Message 4 of 8

sajith_subramanian
Autodesk Support
Autodesk Support

Hi @Skadborg.NTI,

 

In that case, unfortunately, there seem to be no Inventor API's for the Vault Addin.

 

Regards,

Sajith

 

 


Sajith Subramanian
Autodesk Developer Network
0 Likes
Message 5 of 8

Anonymous
Not applicable

And how about disabling or unloading the vault add-in like suggested here (last post)

 

https://forums.autodesk.com/t5/vault-customization/open-inventor-file-in-read-only-mode-not-check-ou...

 

Will this work ?

0 Likes
Message 6 of 8

sajith_subramanian
Autodesk Support
Autodesk Support

Hi Remy,

 

You could try to deactivate the vault add-in using inventor API's. Below is a link to a forum discussion that explains it more in detail:

 

https://forums.autodesk.com/t5/inventor-customization/deactivate-add-in-with-vba-or-vb-net/td-p/3642...

 

Let me know if you need more information.

 

 

Regards,

Sajith


Sajith Subramanian
Autodesk Developer Network
Message 7 of 8

Anonymous
Not applicable

Thanks Sajith,

 

That gave me an idea. Instead of messing with the registry, there is an easier way.

 

After Inventor has started, I deactivate the vault addin and after the job, I Activate it again and it works like a charm 🙂

 

ApplicationAddIn vadd = inventApp.ApplicationAddIns.ItemById["{48B682BC-42E6-4953-84C5-3D253B52E77B}"];
vadd.Deactivate();

 

 

 

0 Likes
Message 8 of 8

aspecchio
Explorer
Explorer

Not sure if it helps , but I use this

 

Dim addin As ApplicationAddIn = app.ApplicationAddIns.ItemById("{3BDD8D79-2179-4B11-8A5A-257B1C0263AC}")

iLogicAuto = addin.Automation

iLogicAuto.RulesOnEventsEnabled = False

 

Then run your code

 

iLogicAuto.RulesOnEventsEnabled = True

 

0 Likes