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





Windows & Linux

Description

Create an interval list defined by scaling every interval in original interval list using either absolute or relative scale.

Syntax

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

Parameters

Name
Description

See Also

Example

Create and configure scaled event interval list.
[C#]
IAgCrdnEventIntervalList intervalList = provider.EventIntervalLists.Factory.CreateEventIntervalListScaled("MyIntervalListScaled",  "MyDescription");
IAgCrdnEventIntervalListScaled asListScaled = intervalList as IAgCrdnEventIntervalListScaled;

asListScaled.AbsoluteIncrement = 40;

// Or use Relative
asListScaled.UseAbsoluteIncrement = false;
asListScaled.RelativeIncrement = 20; // Percentage

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 scaled event interval list.
[Visual Basic .NET]
Dim intervalList As IAgCrdnEventIntervalList = provider.EventIntervalLists.Factory.CreateEventIntervalListScaled("MyIntervalListScaled", "MyDescription")
Dim asListScaled As IAgCrdnEventIntervalListScaled = TryCast(intervalList, IAgCrdnEventIntervalListScaled)

asListScaled.AbsoluteIncrement = 40

' Or use Relative
asListScaled.UseAbsoluteIncrement = False
asListScaled.RelativeIncrement = 20
' Percentage
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.