MTO#
- class ansys.stk.core.stkobjects.MTO#
Bases:
ISTKObject
,ILifetimeInformation
Multi-Track Object (MTO).
Overview#
Get the collection of MTO tracks. |
|
Get the default MTO track. |
|
Get the global MTO track options. |
|
Get the MTOβs 2D Graphics properties. |
|
Get the MTOβs 3D Graphics properties. |
|
Get the MTOβs spatial state. |
Examples#
Load multi-track object (MTO) track points from a file
# load_points expects the path an Ephemeris file path
# MTO mto: MTO Object
track2 = mto.tracks.add(2)
installPath = r"C:\Program Files\AGI\STK 12" if os.name == "nt" else os.environ["STK_INSTALL_DIR"]
track2.points.load_points(
os.path.join(installPath, "Data", "Resources", "stktraining", "text", "EphemerisLLATimePosVel_Example.e")
)
track2.interpolate = True
Create a New MTO (on the current scenario central body)
# Scenario scenario: Scenario object
mto = scenario.children.new(STKObjectType.MTO, "MyMTO")
root.units_preferences.set_current_unit("DateFormat", "EpSec")
mtoTimes = [[0], [7200]]
mtoLats = [[36.77], [34.80]]
mtoLons = [[-77.25], [-78.37]]
mtoAlts = [[5], [5]]
track1 = mto.tracks.add_track(1, mtoTimes, mtoLats, mtoLons, mtoAlts)
track1.interpolate = True
# Change the color of the track
mto.graphics.tracks.get_track_from_identifier(1).color = Colors.Red
Import detail#
from ansys.stk.core.stkobjects import MTO
Property detail#
- property MTO.tracks: MTOTrackCollection#
Get the collection of MTO tracks.
- property MTO.default_track: MTODefaultTrack#
Get the default MTO track.
- property MTO.global_track_options: MTOGlobalTrackOptions#
Get the global MTO track options.
- property MTO.graphics: MTOGraphics#
Get the MTOβs 2D Graphics properties.
- property MTO.graphics_3d: MTOGraphics3D#
Get the MTOβs 3D Graphics properties.
- property MTO.analysis: MTOAnalysis#
Get the MTOβs spatial state.