IModelBoxEditObjectEventArgs.Object

Syntax

Object: IMetabaseObjectDescriptor;

Description

The Object property returns description of edited model as a repository object.

Example

Executing the example requires that the repository contains a form with the following:

Add links to the Ms and Ui system assemblies.

The example is a handler of the OnEditObject event for the ModelBox1 component and is executed on clicking the Edit button or double-click on the equation on the Parameters panel of this component.

Sub ModelBox1OnEditObject(Sender: Object; Args: IModelBoxEditObjectEventArgs);
Begin
    UiModel2.Object := Args.Object;
    UiModel2.Active := True;
End Sub ModelBox1OnEditObject;

After executing the example the edited model will open in the ModelBox2 component.

See also:

IModelBoxEditObjectEventArgs