ALTASegment Class 10: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:API}}{{DISPLAYTITLE: ALTASegment Class (Version 10)}}{{Template:APIBreadcrumb}}<div style="border:1px solid #D0CDE8; background:#EEEDF7; border-radius:10px; width:auto…')
(No difference)

Revision as of 15:12, 23 March 2017

APIWiki.png


Member of: SynthesisAPI

Other Versions: Version 11


Represents the time segments of an associated ALTAStressProfile object.

Properties

Name Description
SegmentEnd The segment's end time. Double.
SegmentStart The segment's start time. Double.
Stress The stress level throughout the segment. Double.


Example

VBA

 '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)
 
 'Get segments. 
  Dim StressSegments() As ALTASegment
  StressSegments = SP.GetSegments
 
 'Get the start time of the first segment. 
  Dim SegStart As Double
  SegStart = StressSegments(0).SegmentStart
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)
 
 'Get segments. 
  Dim StressSegments() As ALTASegment
  StressSegments = SP.GetSegments
 
 'Get the start time of the first segment. 
  Dim SegStart As Double
  SegStart = StressSegments(0).SegmentStart