CModel.SetModel: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 45: | Line 45: | ||
{{APIComment|'Define or change the model's properties.}} | {{APIComment|'Define or change the model's properties.}} | ||
AModel.SetModel(ModelTypeEnum.Lognormal, ModelCategoryEnum.Reliability, {{APIString|"Model1"}}, {{APIPrefix|New Double}}() {1, 100} ) | |||
AModel.SetModel(ModelTypeEnum.Lognormal, ModelCategoryEnum.Reliability, {{APIString|"Model1"}}, |
Revision as of 18:40, 30 July 2015
Member of: SynthesisAPI9.cModel
Sets the model type, category, name and parameters of an existing cModel object.
Syntax
.SetModel(ModelType, ModelCategory, ModelName, ModelParams())
Parameters
ModelType
- The model type (e.g., 2-parameter Weibull). Can be any ModelTypeEnum constant. (Required)
ModelCategory
- The model category (e.g., reliability model). Can be any ModelCategoryEnum constant. (Required)
ModelName
- String. The model name. (Required)
ModelParams()
- Double. An array of the model's parameters. (Required)
Example
VBA ... 'Add code to create a new model or get an existing model. Dim AModel As New cModel ... 'Define or change the model's properties. Dim params(1) As Double params(0) = 5 params(1) = 1 Call AModel.SetModel(ModelTypeEnum_Lognormal, ModelCategoryEnum_Reliability, "Model1", params)
VB.NET ... 'Add code to create a new model or get an existing model. Dim AModel As New cModel ... 'Define or change the model's properties. AModel.SetModel(ModelTypeEnum.Lognormal, ModelCategoryEnum.Reliability, "Model1", New Double() {1, 100} )