STK Vector Geometry ToolSend comments on this topic.
FindInterval Method (IAgCrdnEventInterval)
See Also
Windows





Windows & Linux

Description

Return computed interval if it exists.

Syntax

[Visual Basic .NET]
Public Function FindInterval() As IAgCrdnEventIntervalResult
[C#]
public IAgCrdnEventIntervalResult FindInterval();
[Managed C++]
public: IAgCrdnEventIntervalResult ^ FindInterval();
[Unmanaged C++]
public: HRESULT FindInterval(
    IAgCrdnEventIntervalResult ** ppRetVal
);
[Java]
public IAgCrdnEventIntervalResult findInterval();
[Python - STK API ]
def FindInterval(self) -> "IAgCrdnEventIntervalResult":

See Also

Example

Determines the start and stop times of the event interval.
[C#]
IAgCrdnEventInterval eventInterval = provider.EventIntervals["AvailabilityTimeSpan"];

IAgCrdnEventIntervalResult interval = eventInterval.FindInterval();

if (interval.IsValid)
{
    Console.WriteLine("Interval Start: " + interval.Interval.Start);
    Console.WriteLine("Interval Stop: " + interval.Interval.Stop);
}
Determines the event intervals contained in the interval collection.
[C#]
IAgCrdnEventIntervalCollection intervalCollection = provider.EventIntervalCollections["LightingIntervals"];

IAgCrdnIntervalsVectorResult intervalResult = intervalCollection.FindIntervalCollection();
if (intervalResult.IsValid)
{
    foreach (IAgCrdnIntervalCollection intervals in intervalResult.IntervalCollections)
    {
        foreach (IAgCrdnInterval interval in intervals)
        {
            Console.WriteLine("Start: " + interval.Start);
            Console.WriteLine("Start: " + interval.Stop);
        }
    }
}
Determines the start and stop times of the event interval.
[Visual Basic .NET]
Dim eventInterval As IAgCrdnEventInterval = provider.EventIntervals("AvailabilityTimeSpan")

Dim interval As IAgCrdnEventIntervalResult = eventInterval.FindInterval()

If interval.IsValid Then
	Console.WriteLine("Interval Start: " + interval.Interval.Start)
	Console.WriteLine("Interval Stop: " + interval.Interval.[Stop])
End If
Determines the event intervals contained in the interval collection.
[Visual Basic .NET]
Dim intervalCollection As IAgCrdnEventIntervalCollection = provider.EventIntervalCollections("LightingIntervals")

Dim intervalResult As IAgCrdnIntervalsVectorResult = intervalCollection.FindIntervalCollection()
If intervalResult.IsValid Then
	For Each intervals As IAgCrdnIntervalCollection In intervalResult.IntervalCollections
		For Each interval As IAgCrdnInterval In intervals
			Console.WriteLine("Start: " + interval.Start)
			Console.WriteLine("Start: " + interval.[Stop])
		Next
	Next
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.