ALTADataSet.PlotUseStress

From ReliaWiki
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.ALTADataSet


Sets the use stress value to be plotted (does not affect results of calculations). Double. The Index parameter is an integer that specifies the stress index, where 0 = first stress, 1 = second stress, etc.

Example

The following example demonstrates how to create a use level probability plot for an ALTA single-stress analysis.

VBA

 'Declare a new ALTADataSet object. 
  Dim ADS As New ALTADataSet

 'Add code to create an ALTA data set and analyze it. 
 ...   

 'Declare a new WAPlots object. 
  Dim APlot As New WAPlots
 
 'Add the analyzed data set to the plot. 
  Call APlot.AddDataset(ADS)

 'Create a use level probability plot for use stress = 200. 
 'This example assumes that an image control called "Image1" already exists in the active Excel sheet. 
  ADS.PlotUseStress(0) = 200   
  Set Image1.Picture = APlot.CreatePlotVB6(WAPlotType_UseLevelProbability)
VB.NET

 'Declare a new ALTADataSet object. 
  Dim ADS As New ALTADataSet

 'Add code to create an ALTA data set and analyze it. 
 ...   

 'Declare a new WAPlots object. 
  Dim APlot As New WAPlots
 
 'Add the analyzed data set to the plot. 
  APlot.AddDataset(ADS)

 'Create a use level probability plot for use stress = 200. 
 'This example assumes that a PictureBox control called "PictureBox1" already exists in the Windows Form project. 
  ADS.PlotUseStress(0) = 200   
  PictureBox1.Image = APlot.CreatePlot(WAPlotType.UseLevelProbability)