Spacecraft.AddTank(String, String) Method

Top 

Description

Creates a new Tank object and adds it as hardware to the Spacecraft.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

Spacecraft.AddTank(

String tankName,


String tankType)

 

 

Arguments

tankName


Description:

The name that will be applied to the created Tank.

 

 

tankType


Description:

Tank type to set. Must be a Valid Tank object type.

Valid Values:

Value

Label

"SphericalTank"

SphericalTank

"InterpolatedTank"

InterpolatedTank

"ElectricalTank"

ElectricalTank

 

 

 

 

Return Value

Type:

number

 

 

Returns the new length of the Spacecraft.Tanks array. The newly created Tank will be accessible at an index of the return value - 1.

 

Syntax

myVariable1 = mySpacecraft1.AddTank(myString1, myString2);

 

 

See also

Spacecraft Object

Spacecraft Propagation Guide

Coverage and Contact Analysis Guide