DisplaySettings: IMsDisplaySettings;
The DisplaySettings property determines the display mode for model parameters.
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: