CModel.SetUseStress

From ReliaWiki
Revision as of 18:46, 1 October 2013 by Albert Szeto (talk | contribs) (Created page with '{{Template:APIClass|CModel Class|CModel}} Sets use stress value for a particular stress. == Method Syntax == {{APIName|SetUseStress}} {{APIPrefix|( ByVal}} {{APIName|Index}} {{A…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Sets use stress value for a particular stress.

Method Syntax

SetUseStress ( ByVal Index As Integer, ByVal StressValue As Double )
Sets use stress value for a particular stress.

SetUseStress ( ByVal StressValues() As Double )
Sets use stress value for a particular stress.

Parameters

Index The 0-based index of the Stress of which to update the Use Stress.

StressValue The UseStress to update.

StressValues An array of UseStresses that correspond to the array of Stresses in the model.

Usage Example

Declare the cModel class using an in-line parameter list.

       Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100)

Change the model type and parameters.

       newModel.SetModel(ModelTypeEnum.Lognormal, 2, 200)