CentralBodyComponentCollection#

class ansys.stk.core.stkobjects.astrogator.CentralBodyComponentCollection#

Central Body Collection.

Overview#

item

Allow you to iterate through the collection.

add

Add a central body to the collection.

remove

Remove a central body from the collection.

remove_all

Remove all central bodies from the collection.

get_item_by_index

Retrieve a central body from the collection by index.

get_item_by_name

Retrieve a central body from the collection by name.

count

Return the size of the collection.

_new_enum

Iterates through the collection.

Import detail#

from ansys.stk.core.stkobjects.astrogator import CentralBodyComponentCollection

Property detail#

property CentralBodyComponentCollection.count: int#

Return the size of the collection.

property CentralBodyComponentCollection._new_enum: EnumeratorProxy#

Iterates through the collection.

Method detail#

CentralBodyComponentCollection.item(self, index_or_cb_name: Any) CentralBodyComponent#

Allow you to iterate through the collection.

Parameters:

index_or_cb_name : Any

Returns:

CentralBodyComponent

CentralBodyComponentCollection.add(self, cb_name: str) None#

Add a central body to the collection.

Parameters:

cb_name : str

Returns:

None

CentralBodyComponentCollection.remove(self, index_or_name: Any) None#

Remove a central body from the collection.

Parameters:

index_or_name : Any

Returns:

None

CentralBodyComponentCollection.remove_all(self) None#

Remove all central bodies from the collection.

Returns:

None

CentralBodyComponentCollection.get_item_by_index(self, index: int) CentralBodyComponent#

Retrieve a central body from the collection by index.

Parameters:

index : int

Returns:

CentralBodyComponent

CentralBodyComponentCollection.get_item_by_name(self, cb_name: str) CentralBodyComponent#

Retrieve a central body from the collection by name.

Parameters:

cb_name : str

Returns:

CentralBodyComponent