STK Vector Geometry ToolSend comments on this topic.
CreateEventIntervalListCondition Method (IAgCrdnEventIntervalListFactory)
See Also
Name
Description
Windows





Windows & Linux

Description

Create an interval list containing intervals during which specified condition is satisfied.

Syntax

[Visual Basic .NET]
Public Function CreateEventIntervalListCondition( _
    ByVal Name As String, _
    ByVal Description As String _
) As IAgCrdnEventIntervalList
[C#]
public IAgCrdnEventIntervalList CreateEventIntervalListCondition(
    string Name,
    string Description
);
[Managed C++]
public: IAgCrdnEventIntervalList^ CreateEventIntervalListCondition(
    String __gc ^ Name,
    String __gc ^ Description
);
[Unmanaged C++]
public: HRESULT CreateEventIntervalListCondition(
    BSTR Name,
    BSTR Description,
    IAgCrdnEventIntervalList ** ppRetVal
);
[Java]
public IAgCrdnEventIntervalList createEventIntervalListCondition(
    String Name,
    String Description
);
[Python - STK API ]
def CreateEventIntervalListCondition(self, Name:str, Description:str) -> "IAgCrdnEventIntervalList":

Parameters

Name
Description

See Also

Example

Create and configure list condition event interval.
[C#]
IAgCrdnEventIntervalList intervalList = provider.EventIntervalLists.Factory.CreateEventIntervalListCondition("MyIntervalListSatisfaction",  "MyDescription");
IAgCrdnEventIntervalListCondition asListCondition = intervalList as IAgCrdnEventIntervalListCondition;

asListCondition.Condition = provider.Conditions["AfterStart"];

IAgCrdnIntervalListResult intervals = intervalList.FindIntervals();
if (intervals.IsValid)
{
    foreach (IAgCrdnInterval interval in intervals.Intervals)
    {
        Console.WriteLine("Start: " + interval.Start);
        Console.WriteLine("Stop: " + interval.Stop);
    }
}
Create and configure list condition event interval.
[Visual Basic .NET]
Dim intervalList As IAgCrdnEventIntervalList = provider.EventIntervalLists.Factory.CreateEventIntervalListCondition("MyIntervalListSatisfaction", "MyDescription")
Dim asListCondition As IAgCrdnEventIntervalListCondition = TryCast(intervalList, IAgCrdnEventIntervalListCondition)

asListCondition.Condition = provider.Conditions("AfterStart")

Dim intervals As IAgCrdnIntervalListResult = intervalList.FindIntervals()
If intervals.IsValid Then
	For Each interval As IAgCrdnInterval In intervals.Intervals
		Console.WriteLine("Start: " + interval.Start)
		Console.WriteLine("Stop: " + interval.[Stop])
	Next
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.