Refreshing the Vault client.

Refreshing the Vault client.

pranit_awale
Explorer Explorer
55 Views
2 Replies
Message 1 of 3

Refreshing the Vault client.

pranit_awale
Explorer
Explorer

Is there any API function to refresh the Vault Client (Explorer) from a standalone application? I explored the API but couldn’t find anything. Has anyone tried this before, and is there a way to achieve it?

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

Markus.Koechl
Autodesk
Autodesk

You would need to send the "F5" key to the application. Or - that's my preference - navigate to an entity. To do this call the Connectivity.VaultPro.exe with an *.acr file as argument.
The *.acr file content may look like this:

<?xml version="1.0" encoding="utf-8"?>
<ADM xmlns="http://schemas.autodesk.com/msd/plm/ExplorerAutomation/2004-11-01">
  <Server>localhost</Server>
  <Vault>PDMC-Sample</Vault>
  <Operations>
    <Operation ObjectType="File">
      <ObjectID>$/Designs/Inventor Sample Data/Car Seat/Car Seat.iam</ObjectID>
      <Command>Select</Command>
    </Operation>
  </Operations>
</ADM>

The command to invoke the Vault Explorer Client navigating to the given address in PowerShell:

	$acrFilePath = "C:\Users\Administrator\Downloads\FileCommandRequest.acr"		

	# open the acr file in Vault Explorer; note-- this only works if the file extension *.acr is mapped to Connectivity.VaultPro.exe in Windows
		Invoke-Item $acrFilePath

If a Vault Client is up and running it will bring Vault Window to the front and navigate to the entity.

Alternatively instantiate a new Vault Client session if Vault Explorer is not open yet.

# run Connectivity.VaultPro.exe with the *acr as attribute		
$vaultProPath = "C:\Program Files\Autodesk\Vault Client 2026\Explorer\Connectivity.VaultPro.exe"
$acrFilePath = "C:\Users\Administrator\Downloads\CustomObjectCommandRequest.acr"
if (Test-Path $vaultProPath) {
   & "$vaultProPath" /acr "$acrFilePath"
} else {
	Write-Error "VaultPro.exe not found at path: $vaultProPath"
}

The view is refreshed in any case.

I hope this helps.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 3 of 3

pranit_awale
Explorer
Explorer

sent the "F5" key to the application. 
It's working well now . 

Thank you @Markus.Koechl 

0 Likes