IMsFormulaTransform.DisplaySettings

Syntax

DisplaySettings: IMsDisplaySettings;

Description

The DisplaySettings property determines the display mode for model parameters.

Example

Executing the example requires that the repository contains a modeling container with the MODEL_SPACE identifier containing a model with the MODEL_1 identifier.

Add links to the Metabase and Ms system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    ModelSpaceDesc: IMetabaseObjectDescriptor;
    Model: IMsModel;
    fTransform: IMsFormulaTransform;
    dSett: IMsDisplaySettings;
Begin
    mb := MetabaseClass.Active;
    ModelSpaceDesc := mb.ItemById("MODEL_SPACE");
    Model := mb.ItemByIdNamespace("MODEL_1",ModelSpaceDesc.Key).Edit As IMsModel;
    fTransform := Model.Transform;
    dSett := fTransform.DisplaySettings;
    dSett.DisplayTermsAs:= MsDisplayAttribute.Id;
    (Model As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the Display Identifiers display mode is set for the model parameters.

See also:

IMsFormulaTransform