CModel.SetModel

Sets the model type, category, name and parameters of an existing cModel object.

Syntax
.SetModel(ModelType, ModelCategory, ModelName, ModelParams)

Parameters
ModelType
 * Required. The model type (e.g., 2-parameter Weibull). Can be any ModelTypeEnum constant.

ModelCategory
 * Required. The model category (e.g., reliability model). Can be any ModelCategoryEnum constant.

ModelName
 * Required. String. The model name.

ModelParams
 * Required. Double. An array of the model's parameters.

Example
VBA AModel cModel params(1) params(0) = 5 params(1) = 1 AModel.SetModel(ModelTypeEnum_Lognormal, ModelCategoryEnum_Reliability,, params)

VB.NET AModel cModel AModel.SetModel(ModelTypeEnum.Lognormal, ModelCategoryEnum.Reliability,, {1, 100} )