ALTAStressProfile.AddSegment: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) |
Kate Racaza (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template: | {{Template:API}}{{Template:APIBreadcrumb|.[[ALTAStressProfile_Class|ALTAStressProfile]]}} | ||
{{Template:ALTAStressProfile | |||
<onlyinclude>Adds a new segment to the stress profile.</onlyinclude> | |||
== | == 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 == | |||
{{APIComment|'Declare an | '''VBA|VB.NET''' | ||
Dim sp | |||
{{APIComment|'Declare an ALTAStressProfile object.}} | |||
{{APIPrefix|Dim}} sp {{APIPrefix|As New}} ALTAStressProfile | |||
{{APIComment|'Add segments.}} | {{APIComment|'Add segments.}} |
Revision as of 21:03, 19 April 2016
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. sp.AddSegment(1, 250) sp.AddSegment(2, 300) sp.AddSegment(3, 400)