IMsDisplaySettings.DisplayTermsAs

Syntax

DisplayTermsAs: MsDisplayAttribute;

Description

The DisplayTermsAs property determines parameters of object displaying.

Example

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

Sub Main;

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 Main;

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

See also:

IMsDisplaySettings