Scripting_Tool

This attribute defines a Scripting Tool targeting profile.

Syntax

Astrogator <Satellite Object Path> SetValue <Attribute Path>.Profiles.Scripting_Tool.<Attribute><Value>

Description

The Scripting Tool profile contains an embedded instance of the Scripting Tool. The profile will execute the script it contains each time that the profile is run.

Examples

Setting to Enabled/Disabled

Set Enabled to true to use the Scripting Tool.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Enabled true

Defining Object Property List

Add an Attribute component in the list for each object property needed.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Attributes Attribute Attribute

Specifying Object

Enter the object that the attribute component will be associated with.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Attributes.Attribute.Object Propagate

Specifying Attribute

Enter the specific attribute of the object that the attribute component uses.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Attributes.Attribute.Attribute StoppingConditions.Duration.TripValue

Specifying Unit

Enter the unit in which the object property will be used in the script.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Attributes.Attribute.Unit min

Selecting Editable or Read-Only Attributes

Set ReadOnlyProperty to true to select from read-only attributes or false to select from editable attributes.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Attributes.Attribute.ReadOnlyProperty true

Defining Calc Object List

Enter a Calc Object component for each calculation object needed.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.CalcObjects CalcObject CalcObject

Specifying Calc Object

Enter the name of the calculation object the component should use.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.CalcObjects.CalcObject.CalcObject Altitude

To set a property of the calc object, add that property to the attribute path (this example sets the altitude calc object to be lunar altitude).

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.CalcObjects.CalcObject.CalcObject.CentralBody Moon

Specifying Unit

Enter the unit dimension in which the calculation object will be used in the script.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.CalcObjects.CalcObject.Unit m

Specifying Parameter List

Enter a Parameter component for each parameter needed.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters Parameter Parameter

Defining Parameter Value

Enter the value of the parameter.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters.Parameter.ParamValue 20

Defining Parameter Type

Enter "Boolean", "Date", "Double", "Enumeration", "Integer", "Quantity", or "String".

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters.Parameter.ParamType Enumeration

Defining Parameter Unit

Enter a unit.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters.Parameter.Unit m/sec

Defining Parameter Unit Dimension

Enter a unit dimension.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters.Parameter.UnitDimension Rate

Setting a User Comment

Enter a user comment.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters.Parameter.UserComment This parameter is my favorite

Selecting a Minimum Value

Set UseMinValue to true to give the parameter a minimum value.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters.Parameter.UseMinValue true

Setting a Minimum Value

If UseMinValue is true, define a minimum value for the parameter.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters.Parameter.MinValue 0

Selecting a Maximum Value

Set UseMaxValue to true to give the parameter a maximum value.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters.Parameter.UseMaxValue true

Setting a Maximum Value

If UseMaxValue is true, define a maximum value for the parameter.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Parameters.Parameter.MaxValue 10

Specifying Language

Enter the desired scripting language.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Language JScript

or

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Language VBScript

or

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.Language MATLAB

Specifying Script

Enter the text of the script.

Astrogator */Satellite/Satellite1 SetValue MainSequence.SegmentList.Target_Sequence.Profiles.Scripting_Tool.ScriptStatements "Attribute = 2 * Parameter"

STK Programming Interface 11.0.1