Can I run the Open Drawing From Vault command in ilogic?

Can I run the Open Drawing From Vault command in ilogic?

david_lowndes
Participant Participant
421 Views
4 Replies
Message 1 of 5

Can I run the Open Drawing From Vault command in ilogic?

david_lowndes
Participant
Participant

Hi have searched the forums but cannot find the specific answer to this question.

 

Is it possible to run the "Open Drawing From Vault" command shown it the picture using ilogic? 

0 Likes
Accepted solutions (1)
422 Views
4 Replies
Replies (4)
Message 2 of 5

A.Acheson
Mentor
Mentor

Hi @david_lowndes 

You can pick up the command names from the last post on this article here. That article also has the method to execute the control definition. There is a VBA version here in the API help but no VB.NET version.

 

In advance of pressing  that button by code does it fetch the drawing directly after the button is pressed? If it needs to go through other commands/dialogue then your automation workflow might not work. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 5

david_lowndes
Participant
Participant

@A.Acheson thank you for your help with this.

 

I believe the command I need to run is 

ThisApplication.CommandManager.ControlDefinitions.Item("VaultOpenDesignDocFromVault").Execute

And this worked.....the first time! But every time I have run it subsequently it doesn't work. It doesn't give an error, just does nothing! 

0 Likes
Message 4 of 5

A.Acheson
Mentor
Mentor
Accepted solution

It might be the case you need to manually have the document selected. Either click on the browser node if in an assembly or open the document exclusively and selected the browser node and see if it runs. If this turns out to be the issue then you can selected the document by code using selectSet or Command Manager Do Select

ThisApplication.CommandManager.DoSelect(oOccurrence)






If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 5 of 5

david_lowndes
Participant
Participant

Yes! That's the solution!

 

Doesn't work if I accept the top node, but does for all the children! Thank you for your help. 

0 Likes