Scripting Multiple Representations

You must address certain attributes as pairings or groupings in order to assure proper use. Below are descriptions and code samples for two main pairings: Facility.Position and Satellite.OrbitState. Also below are examples using the nonspecific type LINKTOOBJ, which is a pointer to a group of objects.

Facility.Position

Facility.Position is a multiple representation object. You must apply changes to the entire scope at once to ensure the proper coordinate transformation. To do that, first get position elements in one of the available representations: ToCartesian(), ToGeodetic(), ToGeocentric(), ToCylindrical(), and ToSpherical(). Then modify individual elements of the temp variable and assign them back as a group.

COM

Cross-Platform API

Satellite.OrbitState

For Satellite.OrbitState, you must change the individual members defining the orbit state vector in a temp variable and then assign them back as a group.

COM

Cross-Platform API

Type LINKTOOBJ with "not specified" choice

The LINKTOOBJ type is a pointer to a specific group of objects that sometimes can offer a "not specified" choice. Examples are the GNSSReceiver.DefaultAntenna, Transponder.DefaultAntenna, and Facility.ReferenceEmitter attributes.

COM

Cross-Platform API