AGI STK Objects 11 Send comments on this topic.
IAgVeSGP4AutoUpdate Interface





Description

SGP4 TLE Automatic Update properties.

Object Model




Public Properties

Public Property FileSource A file to be used as the TLE source.
Public Property OnlineSource AGI server to be used as the TLE source.
Public Property Properties The Automatic Update selection and method.
Public Property SelectedSource The source type for TLE updates.

Example

Set SGP4 to auto-update from file source
[C#] Copy Code
propagator.AutoUpdateEnabled = true
propagator.AutoUpdate.SelectedSource = AgEVeSGP4AutoUpdateSource.eSGP4AutoUpdateSourceFile; 
propagator.AutoUpdate.FileSource.Filename = fileUpdateSource; 
 
// Preview TLEs (optional) 
// Preview() returns a one dimension string of tles 
Array tles = propagator.AutoUpdate.FileSource.Preview(); 
 
Regex rx = new Regex(@"^(?<ssc>[-]?\d+) (?<orbitepoch>[-]?\d+[.]?\d+) (?<revnumber>[-]?\d+)$"); 
foreach (object line in tles) 

    Match m = rx.Match(line.ToString()); 
    Console.WriteLine("SCC: {0}, orbit epoch: {1}, rev number: {2}", m.Groups["ssc"], m.Groups["orbitepoch"], m.Groups["revnumber"]); 

 
// Propagate 
propagator.Propagate(); 
 

Set SGP4 to auto-update from online source
[C#] Copy Code
propagator.AutoUpdateEnabled = true
propagator.AutoUpdate.SelectedSource = AgEVeSGP4AutoUpdateSource.eSGP4AutoUpdateSourceOnline; 
 
// Preview TLEs (optional) 
// Preview() returns a one dimension string of tles 
Array tles = propagator.AutoUpdate.FileSource.Preview(); 
 
Regex rx = new Regex(@"^(?<ssc>[-]?\d+) (?<orbitepoch>[-]?\d+[.]?\d+) (?<revnumber>[-]?\d+)$"); 
foreach (object line in tles) 

    Match m = rx.Match(line.ToString()); 
    Console.WriteLine("SCC: {0}, orbit epoch: {1}, rev number: {2}", m.Groups["ssc"], m.Groups["orbitepoch"], m.Groups["revnumber"]); 

 
// Propagate 
propagator.Propagate(); 
 

Set SGP4 to auto-update from file source
[Visual Basic .NET] Copy Code
propagator.AutoUpdateEnabled = True
propagator.AutoUpdate.SelectedSource = AgEVeSGP4AutoUpdateSource.eSGP4AutoUpdateSourceFile
propagator.AutoUpdate.FileSource.Filename = fileUpdateSource

' Preview TLEs (optional)
' Preview() returns a one dimension string of tles
Dim tles As Array = propagator.AutoUpdate.FileSource.Preview()

#If Not CSToJava Then
Dim rx As New Regex("^(?[-]?\d+) (?[-]?\d+[.]?\d+) (?[-]?\d+)$")
#Else
#End If
For Each line As Object In tles
    Dim m As Match = rx.Match(line.ToString())
    #If Not CSToJava Then
        #Else
        #End If
    Console.WriteLine("SCC: {0}, orbit epoch: {1}, rev number: {2}", m.Groups("ssc"), m.Groups("orbitepoch"), m.Groups("revnumber"))
Next

' Propagate
propagator.Propagate()

Set SGP4 to auto-update from online source
[Visual Basic .NET] Copy Code
propagator.AutoUpdateEnabled = True
propagator.AutoUpdate.SelectedSource = AgEVeSGP4AutoUpdateSource.eSGP4AutoUpdateSourceOnline

' Preview TLEs (optional)
' Preview() returns a one dimension string of tles
Dim tles As Array = propagator.AutoUpdate.FileSource.Preview()

#If Not CSToJava Then
Dim rx As New Regex("^(?[-]?\d+) (?[-]?\d+[.]?\d+) (?[-]?\d+)$")
#Else
#End If
For Each line As Object In tles
    Dim m As Match = rx.Match(line.ToString())
    #If Not CSToJava Then
        #Else
        #End If
    Console.WriteLine("SCC: {0}, orbit epoch: {1}, rev number: {2}", m.Groups("ssc"), m.Groups("orbitepoch"), m.Groups("revnumber"))
Next

' Propagate
propagator.Propagate()

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1