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






Windows & Linux

Description

SGP4 TLE Automatic Update properties.

Object Model




Public Properties

Public Property FileSourceA file to be used as the TLE source.
Public Property OnlineSourceAGI server to be used as the TLE source.
Public Property PropertiesThe Automatic Update selection and method.
Public Property SelectedSourceThe 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()

Dim rx As New Regex("^(?[-]?\d+) (?[-]?\d+[.]?\d+) (?[-]?\d+)$")
For Each line As Object In tles
    Dim m As Match = rx.Match(line.ToString())
    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()

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

' Propagate
propagator.Propagate()

© 2018 Analytical Graphics, Inc. All Rights Reserved.