Scene3DSetup Command

Purpose

Opens a standard dialog box that is used to set up 3D scene parameters.

Parameters of Use

Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:

Value type Description
IPrxScene3D The 3D scene, which parameters are to be set up.

Application Features

The command is used only for regular reports.

Example

Executing the example requires a form with the Button1 button, the ReportBox component and the UiReport component named UiReport1, which is used as a data source for the ReportBox component. A 3D scene object is inserted on the active sheet of the regular report connected in the UiReport1 component.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Sheet: ITabSheet;
        Scene3D: IPrxScene3D;
        Target: IUiCommandTarget;
        Context: IUiCommandExecutionContext;
    Begin
        Sheet := (UiReport1.Instance As IPrxReport).ActiveSheet As ITabSheet;
        Scene3D := Sheet.Objects.Item(0).Extension As IPrxScene3D;
        Target := WinApplication.Instance.GetPluginTarget("Report");
        Context := Target.CreateExecutionContext;
        Context.Data := Scene3D;
        Target.Execute("Scene3DSetup", Context);
    End Sub Button1OnClick;

Clicking the button opens a standard dialog box that is used to set up 3D scene parameters.

See also:

IUiCommandTarget.Execute