Description | Example | Return message | Group

Graphics SetAccessGfx

Set access graphics for an object or for all objects in a scenario

Syntax

Graphics <ObjectPath> SetAccessGfx {AccessObject} {AccessGfxOptions}

Related commands

Description

The Graphics SetAccessGfx Connect command controls the display of access graphics in the 2D Graphics window. At this level, you can set the display of graphics so that the parameters set here affect every access calculation. If <ObjectPath> is the Scenario, access graphics for all objects in the Scenario can be set.

If <ObjectPath> is the scenario path and you do not enter any {AccessGfxOption} or {AccessObject} is All, then STK will compute all accesses for all objects. Depending on the number of objects in the scenario, it may take some time for access graphics to appear.

The following table describes the {AccessObject} values.

{AccessObject}Description
AllWhen the {AccessObject} is All, then all accesses will be computed FROM all valid objects TO the object specified by <ObjectPath>, and graphics values will be set for all accesses.
ComputedWhen the {AccessObject} is Computed, then access graphics values will only be set for accesses that have already been computed; STK will not compute new accesses.
<TruncObjectPath>If you enter <TruncObjectPath>, then access graphics values will be set for the access FROM the <ObjectPath> TO the <TruncObjectPath>. STK will compute the access if it does not already exists.

This option is invalid if the <ObjectPath> is the scenario path.

The following table describes the valid {AccessGfxOptions}. You can enter any number of these options on one command line.

{AccessGfxOption}Description
Show {On | Off}Turn on or off display of access graphics.
ShowLine {On | Off}If On, a line appears on the 2D Graphics window between the two access objects to show when they are accessible to one another during animation.
ShowAnim {On | Off}If On, a box appears around each object during access.
ShowStatic {On | Off}If On, access is highlighted in the 2D Graphics window as a thick line overlaying the ground tracks for a vehicle or a vehicle sensor and as an X for a facility, a place, a target, or a sensor that is attached to a facility, place, or target.
LineWidth <Width>Set the line width value for the access graphics. Valid values are between 1.0 and 10.0.
LineStyle <Style>Set the line style for the access graphics. For <Style>, enter a name or number as specified for LineStyle under Common graphics options.
Inherit {On | Off}If On, the ShowLine, ShowAnim, and ShowStatic settings will be inherited from the scenario.

To set the access graphics properties for the scenario, use the Graphics GlobalAttributes command.

If you set ShowLine, ShowAnim, or ShowStatic options, then STK will turn Inherit off. If, however, you include the Inherit option on the command line, it will take precedence over the settings for ShowLine, ShowAnim, and ShowStatic on the same command line.

Examples

To compute all accesses in the scenario and set access graphics so that static graphics and lines overlaying the ground tracks for all objects display in the 2D Graphics window but don't display the box around the objects during animation:

Graphics * SetAccessGfx All ShowLine On ShowAnim Off ShowStatic On

To compute (if necessary) and show the line graphics with a line width of 3 and style MDashDot for the Satellite1 to Facility1 access:

Graphics */Satellite/Satellite1 SetAccessGfx Facility/Facility1 ShowLine On LineWidth 3 LineStyle MDashDot

To turn off the access graphics for all computed accesses in the scenario:

Graphics * SetAccessGfx Computed ShowLine Off ShowAnim Off ShowStatic Off

To compute (if necessary) and show the static and animation graphics for all access TO Satellite1:

Graphics */Satellite/Satellite1 SetAccessGfx All ShowStatic On ShowAnim On

Return message

If activated, Connect returns an acknowledgement message.

Group membership

This command belongs to the following group(s):

2D Graphics Window

Object Tools

Version

12