2D Graphics Window

Connect commands are available to control the display of objects and the view in the 2D Graphics window.

Command Format Description Version
AllowAnimationUpdate AllowAnimationUpdate <ScenarioPath> {On | Off | Toggle} Controls whether the 2D Graphics and 3D Graphics windows refresh 6.1
AnimFrameRate AnimFrameRate <ScenarioPath> Return the current scenario's frame rate during animation 4.0
Animate Animate <ScenarioPath> {AnimateOption} <Parameters> Direct animation of a scenario 10.1
Async2DKeyboard Async2DKeyboard <ScenarioPath> {On | Off} Return a string indicating which keys on the keyboard are pressed 5.0
Async2DPick Async2DPick <ScenarioPath> {State} <Parameter> Return the object name or lat/lon coordinates of a point clicked in a 2D Graphics window 7.0
BatchGraphics BatchGraphics <ScenarioPath> {On | Off} [Optimize] Set performance response of the 2D and 3D Graphics windows 4.2
ExportMapStyles ExportMapStyles <ScenarioPath> {Options} Export map styles. 6.1
GetAnimTime GetAnimTime <ScenarioPath> Return the current animation time 4.0
GetAnimationData GetAnimationData <ScenarioPath> {Option} Return information about the animation settings. 6.1
GetMapStyles_R GetMapStyles_R <ScenarioPath> Return a list of map styles. 6.1
Graphics AsyncPickReturnUnique Graphics <ScenarioPath> AsyncPickReturnUnique {On | Off} Set flag to only return unique objects when using the Async2DPick command. 6.1.2
Graphics BackgroundImage Graphics <ScenarioPath> BackgroundImage {Options} Set background image options for the 2D Graphics window. 10
Graphics BingMapsLogo Graphics <ScenarioPath> BingMapsLogo {Options} Specify the location of the Microsoft Bing™ Maps logo. 10
Graphics GlobalAttributes Graphics <ScenarioPath> {AttributeOption} {On | Off} Specify whether or not a given attribute should be displayed in the 2D Graphics window 10
Graphics ImageInlay Graphics <ScenarioPath> ImageInlay "<FilePath>" {ImageOption} <Value> [{ImageOption} <Value>...] Set properties for an inlay image on a 2D Graphics window 9.0
Graphics Nightlights Graphics <ScenarioPath> Nightlights {DisplayOptions} Set options for displaying night lights in the 2d Graphics window 10
Graphics SetAccessGfx Graphics <ObjectPath> SetAccessGfx {AccessObject} {AccessGfxOptions} Set access graphics for an object or for all objects in a Scenario 10
ImportMapStyles ImportMapStyles <ScenarioPath> {Options} Import map styles. 6.1
Lighting Lighting <ScenarioPath> {LightingType} {DisplayOptions} Set lighting transition line and area display options. 10
Lighting DisplayAltitude Lighting <ScenarioPath> DisplayAltitude <AltitudeValue> [WindowID <WinNumber>] Control the altitude from which regions of umbra, penumbra and sunlight are depicted during animation 6.0
Lighting Penumbra Lighting <ScenarioPath> Penumbra {DisplayOption} <Value> [{DisplayOption} <Value> ...] Control the graphical display of penumbra regions during animation (Deprecated Command) 10
Lighting SubSolarPoint Lighting <ScenarioPath> SubSolarPoint {DisplayOption} <Value> [<DisplayOption2> <Value2>...] Display the subsolar point during animation 6.0
Lighting Sunlight Lighting <ScenarioPath> Sunlight {DisplayOption} <Value> [{DisplayOption2} <Value2> ... ] Control the graphical display of sunlit regions during animation (Deprecated Command) 10
Lighting Umbra Lighting <ScenarioPath> Umbra {DisplayOption} <Value> [{DisplayOption} <Value> ...] Control the graphical display of umbra regions during animation (Deprecated Command) 10
MapAnnotation Add MapAnnotation <ScenarioPath> Add <AnnotNum> {AnnotType} [<Parameters>] Adds annotations to the 2D Graphics window 10
MapAnnotation Delete MapAnnotation <ScenarioPath> Delete {<AnnotNum> | All} [WindowID <WinNumber>] Delete map annotations from the 2D Graphics window 6.0
MapAnnotation Export MapAnnotation <ScenarioPath> Export "<FilePath>" [WindowID <WinNumber>] Export map annotations to a file 6.0
MapAnnotation Modify MapAnnotation <ScenarioPath> Modify <AnnotNum> {Option} <Parameters> Modify previously added map annotations 6.0
MapAnnotation_RM MapAnnotation_RM <ScenarioPath> {Option} [WindowID <WinNumber>] Return information about map annotations. 10.1
MapAttribs MapAttribs <ScenarioPath> {AttributeType} {Attribute} {State} [<Color>] Control the graphical attributes of the 2D Graphics window 10
MapDetails MapDetails <ScenarioPath> {DetailOption} <Parameters> Control the type and resolution of details displayed in the 2D Graphics window 9.0
MapGraphics AspectRatio MapGraphics <ScenarioPath> AspectRatio Always2To1 {On | Off} [WindowID <WinNumber>] Set the map aspect ratio to be used on the 2D Graphics window 7.1
MapGraphics Fonts MapGraphics <ScenarioPath> Fonts [{Small | Medium | Large}] {FontOptions} Set the font styles to be used on the 2D Graphics window 9.1
MapGraphics Resolution MapGraphics <ScenarioPath> Resolution {ResOptions} Set the map resolution to be used on the 2D Graphics window 7.1
MapGraphics SetCentralBody MapGraphics <ScenarioPath> SetCentralBody <CBName> [WindowID <WinNumber>] Set the central body that will be displayed in a 2D Graphics window 8.1
MapID_R MapID_R <ScenarioPath> [<Count>] Return information about the open 2D Graphics windows. 5.0
MapProjection MapProjection <ScenarioPath> {ProjectionType} [<WinNumber>] [{ProjectionOption} <Parameters>] Set the graphical display of the central body in the 2D Graphics window 4.1.1
MapSnap MapSnap <ScenarioPath> {SnapOption} [<Parameters>] [<WinNumber>] Take a picture of the current 2D Graphics window and save it 10.1
MapTracking MapTracking <ScenarioPath> {TrackingType} [<WinNumber>] Set the display format of the mouse movement in the 2D Graphics window 6.2
Print Print <ScenarioPath> [<WinNumber>] Prints the 2D map 4.2
SetAnimation SetAnimation <ScenarioPath> {AnimateOption} <Parameters> Set values to control animation. 10
SoftVTR2D SoftVTR2D <ScenarioPath> {SoftVTROption} <Value> [{SoftVTROption} <Value>...] Control soft video tape recording features for a 2D Graphics window 7.1
SoftVTR2D_R SoftVTR2D_R <ScenarioPath> {Options} Return information about Soft VTR settings. 7.1
Terrain Terrain <ScenarioPath> {Action} <Parameters> Add or remove terrain data to be used in STK calculations 11
TerrainServer TerrainServer <ApplicationPath> <Parameters> Specify a terrain server to be used in STK calculations 11
TerrainServer_RM TerrainServer_RM <ApplicationPath> {Option} To get information about the terrain server being used in STK calculations 11
Terrain_RM Terrain_RM <ScenarioPath> TerrainServer {Option} Return information about the Terrain Server. 11
UseMapStyle UseMapStyle <ScenarioPath> {MapStyle} [<WinNumber>] Sets the 2D map style 4.2
UseMapStyleTime UseMapStyleTime <ScenarioPath> {State} Turn on or off the map style time 4.2
Window2D Window2D <ScenarioPath> {2DGfxWinOption} <Value> [WindowID <WinNumber>] Create, remove or modify a 2D Graphics window 10
Window2D_R Window2D_R <ScenarioPath> {DataType} {DataTypeOptions} [WindowId <WinNumber>] Return information about a 2D Graphics window 9.0
Zoom Zoom <ScenarioPath> {ZoomOption} [<Parameters>] [<WinNumber>] Zoom in or out in a 2D Graphics window 10
Zoom_R Zoom_R <ScenarioPath> {DataOption} [<WinNumber>] Return data about the current map view and levels of magnification 8.1

STK Programming Interface 11.0.1