Description | Example | Return Message | Group

Graphics ObjectStateInWin

Control the display of objects' graphics in the 2D window.

Syntax

Graphics <ScenarioPath> ObjectStateInWin {Options}

Related Commands

Description

The Graphics ObjectStateInWin command allows the user to turn off all graphics for one or more objects in a 2D Map Window.

{Option} Description
Object <TruncObjectPath> Specify the object whose graphics will be turned on or off.

Multiple objects can be specified on one line

Show {On | Off} Specify whether graphics should be on or off.
WindowID {<WinNumber> | All} Enter the number of the 2D window where graphics will be turned on or off, or enter All to turn graphics on or off in all 2D windows.
WindowTitle "<WindowTitle>" Enter the title of the 2D window where graphics will be turned on or off.

If Show Off is specified then all graphics for the object will be hidden in the specified 2D Window regardless of other window on/off flags.

To find window ids and titles use the MapID_R command.

If either of the objects that are disabled in a window, are being used in access calculations, the access graphics for the access pair including the disabled object will not be displayed.

This command does not affect chains, constellations or attitude coverage objects

When a 2d window is created, all graphics will show up in that window until explicitly disabled by this command.

When a 2d window is destroyed, the on/off state of an object is reset for that window id. For example, if an object is off in window id 2 and then that window is destroyed, if another widow is created and this reuses the windowid of 2, that window will display all objects in it, even the object that was previously off in window 2.

Child objects will not display in windows where the parent object is disabled.

Example

Turn off graphics for Target t1 and Aircraft ac1 in 2D windows 1 and 3:

Graphics * ObjectStateInWin Show off Object Target/t1 Object Aircraft/ac1 WindowId 1 WindowId 3

Turn on graphics for Target t1 in 2D window 1:

Graphics * ObjectStateInWin Show On Object Target/t1 WindowId 1

Turn off graphics for Sensor5 in 2D windows 1 and 2:

Graphics * ObjectStateInWin Object Satellite/Satellite1/Sensor/Sensor5 Show off WindowId 1 WindowId 2

ReturnMessage

If activated, Connect returns an acknowledgement message.

Group Membership

This command belongs to the following group(s):

Area Targets

Comm

CAT

Coverage

Facilities, Places & Targets

2D Object Graphics

Line Targets

Radar

Scenarios

Sensors

Stars & Planets

Vehicles

Version

7.0

STK Programming Interface 11.0.1