AGI STK Objects 11 Send comments on this topic.
IAgObjectLinkCollection Collection





Description

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

Object Model

Public Methods

Public Method Add Adds to the collection a link to an STK object with the given object path and name.
Public Method AddObject Adds to the collection a link to the given STK object.
Public Method Contains Determines whether the object with the given name is in the collection.
Public Method IndexOf Searches 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 Remove Removes from the collection a link to the STK object with the given index.
Public Method RemoveAll Removes all links from the collection.
Public Method RemoveName Removes from the collection a link to an STK object with the given object path and name.
Public Method RemoveObject Removes from the collection a link to the given STK object.

Public Properties

Public Property AvailableObjects Returns an array of valid objects.
Public Property Count Returns the number of elements in a collection.
Public Property Item Given an index, returns an element in the collection.

Example

Define and compute a chain (basic)
[C#] Copy Code
// 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] Copy Code
' 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()

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1