Share

Data Standard PowerShell Variables

Use certain objects in PowerShell functions to access Data Standard properties and methods as well as Vault API functionality.

The availability column indicates in which PowerShell files the objects can be used. For example, Vault file dialog means, the PowerShell code is used in the context of a create and edit file dialog.

Variable

Availability

Description

$dsCommands

Vault menu

Provides methods to create dialogs.

$dsDiag

Everywhere

Can be used for debuggin.

$dsParam

Inventor OnPostCloseDialog function

Provides context information.

$dsWindow

Everywhere

Through this variable, all properties and methods of the WPF window can be accessed.

$IsCADFile ($isnoncadfile)

Vault file dialog

Indicates if the context file is a CAD document or not.

$IsOfficeClient

Vault menu, file dialog

Indicates if running in Vault Office client.

$Prop[]

Everywhere

Provides access to Vault properties or CAD properties.

$UIString[]

Everywhere

Returns localized text strings identified by an ID. See Localization for more information.

$vault

Vault tabs, menu, dialogs; CAD

Vault API WebServiceManager object

$vaultApplication

Vault tabs, dialogs

Vault API IApplication object

$vaultConnection

Vault tabs, menu, dialogs; CAD

Vault API Connection object

$vaultContext

Vault tabs, menu

Provides useful context information for tab controls and menus.

$vaultExplorerUtil

Vault menu, dialogs

Vault API IExplorerUtil object.

$vaultUsername

Vault OnLogOn function

Only set when OnLogOn function is called.

Was this information helpful?