ALTAStressProfile.AddSegment: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
    
    
  '''VBA|VB.NET'''
  '''VBA|VB.NET'''
{{APIComment|'Declare an ALTAStressProfile object.}}
  {{APIPrefix|Dim}} sp {{APIPrefix|As New}} ALTAStressProfile
 
{{APIComment|'Add segments.}}
  {{APIPrefix|Call}} sp.AddSegment(1, 250)
  {{APIPrefix|Call}} sp.AddSegment(2, 300)
  {{APIPrefix|Call}} sp.AddSegment(3, 400)
'''VB.NET'''
   
   
  {{APIComment|'Declare an ALTAStressProfile object.}}
  {{APIComment|'Declare an ALTAStressProfile object.}}

Revision as of 21:09, 19 April 2016

APIWiki.png


Member of: SynthesisAPI.ALTAStressProfile


Adds a new segment to the stress profile.

Syntax

.AddSegment(SegmentEnd, Stress) 

Parameters

SegmentEnd

Required. Double. The time at the end of this segment.

Stress

Required. Double. The stress value during this segment.


Example

VBA|VB.NET

 'Declare an ALTAStressProfile object. 
 Dim sp As New ALTAStressProfile
 
 'Add segments. 
 Call sp.AddSegment(1, 250)
 Call sp.AddSegment(2, 300)
 Call sp.AddSegment(3, 400)
VB.NET

 'Declare an ALTAStressProfile object. 
 Dim sp As New ALTAStressProfile
 
 'Add segments. 
 sp.AddSegment(1, 250)
 sp.AddSegment(2, 300)
 sp.AddSegment(3, 400)