refresh vault status ( in vaultAddin ) via API

refresh vault status ( in vaultAddin ) via API

Anonymous
Not applicable
1,645 Views
2 Replies
Message 1 of 3

refresh vault status ( in vaultAddin ) via API

Anonymous
Not applicable

I´m working on an addin that needs the vaultAddin ( Inventor Vault / InventorVault.dll ) to update it´s vaultinfo via API.

 

Since the vaultaddins browserpane.control is an activeX control I can´t access it, and the addin has not implemented a hook to the browserpane.refresh() or browserpane.update() ( causes a crash )

 

So how do I refresh the vaultAddins information on "what´s actually going on in the vault" through API ?

 

It seems like I "just" need a reference to the same eventhandler the "refresh vault status" button is calling, but that might be wishfull thinking..?

 

( C#, VS2012 )

 

I´m not alone in this 😉

 

http://forums.autodesk.com/t5/Autodesk-Vault-IdeaStation/Vault-browser-in-Inventor/idi-p/3777122

 

0 Likes
Accepted solutions (1)
1,646 Views
2 Replies
Replies (2)
Message 2 of 3

xiaodong_liang
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

I have no idea with vaultaddin reference, but perhaps, you may try this.


Sub Vault_Refreshtest()


Set ctrdef = ThisApplication.CommandManager.ControlDefinitions.Item("VaultRefresh")

If Not ctrdef Is Nothing Then

ctrdef.Execute

End If

End Sub

Message 3 of 3

Anonymous
Not applicable

Tested & tried..  Works!  Thx big time!

0 Likes