ALTADataSet.PlotUseStress: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 19: Line 19:


== Usage Example ==
== Usage Example ==
{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
This example demonstrates how to add a stress and set its stress transformation.
        Dim ALTADS as New ALTADataSet
{{APIComment|'Declare the ALTADataSet. See [[ALTADataSet Constructors]].}}
 
  Dim ALTADS as New ALTADataSet
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
 
        Dim sp = New ALTAStressProfile("Profile1")
{{APIComment|'Add a new stress.}}
        sp.RepeatCycle = True
  ALTADS.AddStressDefinition("Stress1")
        sp.AddSegment(1, 250)
 
        sp.AddSegment(2, 300)
{{APIComment|'Set the use stress level (to be used in plots) for the first stress.}}
        sp.AddSegment(3, 400)
  ALTADS.PlotUseStress(0) = 200
 
{{APIComment|Add the stress profile. See [[ALTADataSet.AddStressProfile]] for additional details}}
        ALTADS.AddStressProfile(sp)
 
{{APIComment|Set the Use Stress level for the stress profile.}}
        ALTADS.PlotUseStress(0) = 200

Revision as of 23:36, 19 March 2014


Sets or gets the use stress value of a particular stress for use in plots (not calculations), using the specified stress index.

To set the use stress level for calculations, use the FittedModel.SetUseStress method.

Syntax

  • PlotUseStress( Index As Integer )

Parameters

Index: The index of the stress column (e.g., 0 = the first stress, 1 = the second, etc.).

Value

Type: double

Usage Example

This example demonstrates how to add a stress and set its stress transformation.

 'Declare the ALTADataSet. See ALTADataSet Constructors. 
 Dim ALTADS as New ALTADataSet
 
 'Add a new stress. 
 ALTADS.AddStressDefinition("Stress1")
 
 'Set the use stress level (to be used in plots) for the first stress. 
 ALTADS.PlotUseStress(0) = 200