STK ObjectsSend comments on this topic.
IAgObjectLinkCollection Interface

Description

IAgObjectLinkCollection represents a collection of names of STK objects that are available in the current scenario.

Public Methods

Public Method AddAdds to the collection a link to an STK object with the given object path and name.
Public Method AddObjectAdds to the collection a link to the given STK object.
Public Method ContainsDetermines whether the object with the given name is in the collection.
Public Method IndexOfSearches the collection for the specified object and returns a zero-based index of the first occurrence within the collection, if found; otherwise, -1.
Public Method RemoveRemoves from the collection a link to the STK object with the given index.
Public Method RemoveAllRemoves all links from the collection.
Public Method RemoveNameRemoves from the collection a link to an STK object with the given object path and name.
Public Method RemoveObjectRemoves from the collection a link to the given STK object.

Public Properties

Public Property AvailableObjectsReturns an array of valid objects.
Public Property CountReturns the number of elements in a collection.
Public Property ItemGiven an index, returns an element in the collection.

Example

Define and compute a chain (basic)
[C#]
// Add some objects to chain (using STK path)
chain.Objects.Add("Facility/fac1");
chain.Objects.Add("Satellite/sat1");
chain.Objects.Add("Satellite/sat2");
chain.Objects.Add("Aircraft/air1");

// Compute the chain
chain.ComputeAccess();
Define and compute a chain (basic)
[Visual Basic .NET]
' Add some objects to chain (using STK path)
chain.Objects.Add("Facility/fac1")
chain.Objects.Add("Satellite/sat1")
chain.Objects.Add("Satellite/sat2")
chain.Objects.Add("Aircraft/air1")

' Compute the chain
chain.ComputeAccess()
© 2024 Analytical Graphics, Inc. All Rights Reserved.