AGI STK Objects 11 Send comments on this topic.
IAgDrSubSection Interface





Description

Represents a sub-section data element.

Object Model


Public Properties

Public Property Intervals Returns a collection of intervals within the sub-section.
Public Property Title Returns a title of the sub-section.

Example

Extract data from IAgDrSubSectionCollection (generic)
[C#] Copy Code
foreach (IAgDrSubSection section in subSection) 

    Console.WriteLine(section.Title); 
 
    foreach (IAgDrInterval interval in section.Intervals) 
    { 
        Console.WriteLine("\tTime {0} - {1}", interval.StartTime, interval.StopTime); 
 
        foreach (IAgDrDataSet dataset in interval.DataSets) 
        { 
            Array values = dataset.GetValues(); 
 
            Console.WriteLine("\t{0}", dataset.ElementName); 
 
            foreach (object value in values) 
            { 
                Console.WriteLine("\t\t{0}", value.ToString()); 
            } 
        } 
    } 

 

Extract data from IAgDrSubSectionCollection (generic)
[Visual Basic .NET] Copy Code
For Each section As IAgDrSubSection In subSection
    Console.WriteLine(section.Title)

    For Each interval As IAgDrInterval In section.Intervals
        Console.WriteLine(vbTab & "Time {0} - {1}", interval.StartTime, interval.StopTime)

        For Each dataset As IAgDrDataSet In interval.DataSets
            Dim values As Array = dataset.GetValues()

            Console.WriteLine(vbTab & "{0}", dataset.ElementName)

            For Each value As Object In values
                Console.WriteLine(vbTab & vbTab & "{0}", value.ToString())
            Next
        Next
    Next
Next

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1