Share
 
 

Data Standard XAML Bindings

Binding is an essential concept to establish a connection between the Data Standard UI and the underlying business logic. This topic contains a list of available Data Standard properties and functions that can be used in bindings.

The availability indicates in which XAML files the objects can be used.

Object

Availability

Description

CancelWindowCommand

Vault dialogs; CAD

Used as "Command" binding for Cancel buttons in all dialogs. This function closes the dialog and cancels the current function.

CloseWindowCommand

Vault dialogs; CAD

Used as "Command" binding for"OK buttons in all dialogs. This function closes the dialog and continues with the function. For example, save or create new files by using the data specified in the dialog.

CopyMode

CAD

Is set to "True" when the Data Standard window is in copy mode. For example, when running a copy function. Is used to control the appearance of the dialog (e.g., enable/disable, hide controls).

When CopyMode is True, CreateMode is also set True.

CreateMode

CAD, Vault

Is set to "True" when the Data Standard window is in create mode. For example, when the file gets saved for the first time.

Is used to control the appearance of the dialog (e.g., enable/disable, hide controls).

DynamicProperties

Vault dialogs, tabs; CAD

Returns a list of properties for a the Vault category defined by DynamicPropertiesCategory. See Dynamic Properties for more details.

DynamicPropertiesCategory

Vault dialogs, tabs; CAD

Sets the Vault category that should be used for DynamicProperties. See Dynamic Properties for more details.

EditMode

CAD, Vault

Is set to "True" when the Data Standard window is in create mode. Is used to control the appearance of the dialog (e.g., enable/disable, hide controls).

PathAndFileNameHandler

CAD

Provides access to the internal PathAndFileNameHandler object. Can be used in "Text" bindings to show the filename, path, or original filename in the dialog.

IsCadFile, IsNonCadFile

Vault dialogs

Returns "True" if the context file is a CAD file (see $IsCADFile, $IsNotCADFile). Is used to control the appearance of the dialog (e.g., enable/disable, hide controls).

IsEditDialog

Vault dialogs

Equivalent to EditMode for CAD.

IsNewEntryDialog

Vault dialogs

Equivalent to CreateMode for CAD.

IsOfficeClient, IsNotOfficeClient

Vault dialogs, tabs

Returns "True" if running in a Vault Office client (see $IsOfficeClient, $IsNotOfficeClient ). Is used to control the appearance of the dialog (e.g., enable/disable, hide controls).

IsValid, IsInvalid

CAD

Can be used in IsEnabled bindings for OK button to disable the button if not all entered property values are valid.

Prop[]

Vault dialogs, tabs; CAD

Used to access Vault properties or file properties for CAD. For more details about this object, see $Prop[].

PsCmd[]

Vault dialogs, tabs; CAD

Can be used to execute a PowerShell function. The function name has to be specified in the square brackets.

PsList[]

Vault dialogs, tabs; CAD

Can be used to execute a PowerShell function. The function name has to be specified in the square brackets. The function returns a string which can be used for example in a Text binding.

PsVal[]

Vault dialogs, tabs; CAD

Can be used to execute a PowerShell function. The function name has to be specified in the square brackets. The function returns a list of objects which can be used for example in a ItemsSource binding for ComboBox controls.

UiString[]

Vault dialogs, tabs; CAD

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

Can be used for example in Content bindings for Label controls.

Here is a list of special properties that can be used in bindings for Inventor functional documents dialogs:

Object

Availability

ActiveSelectionIsDesignAcceleratorAssemblies

DesignAccelerator.xaml

ActiveSelectionIsDesignAcceleratorParts

DesignAccelerator.xaml

DesignAcceleratorAssemblies

DesignAccelerator.xaml

DesignAcceleratorParts

DesignAccelerator.xaml

ActiveSelectionIsFrameDocuments

FrameGenerator.xaml

ActiveSelectionIsFrameMemberDocuments

FrameGenerator.xaml

ActiveSelectionIsSkeletonDocuments

FrameGenerator.xaml

FrameDocuments

FrameGenerator.xaml

FrameMemberDocuments

FrameGenerator.xaml

SkeletonDocuments

FrameGenerator.xaml

ActiveSelectionIsHarnessAssemblies

CableAndHarness.xaml

ActiveSelectionIsHarnessParts

CableAndHarness.xaml

HarnessAssemblies

CableAndHarness.xaml

HarnessParts

CableAndHarness.xaml

ActiveSelectionIsRunAssemblies

TubeAndPipe.xaml

ActiveSelectionIsRouteParts

TubeAndPipe.xaml

ActiveSelectionIsRunComponents

TubeAndPipe.xaml

RouteParts

TubeAndPipe.xaml

RunAssemblies

TubeAndPipe.xaml

RunComponents

TubeAndPipe.xaml

Was this information helpful?