CentralBodyComponentCollection#
- class ansys.stk.core.stkobjects.astrogator.CentralBodyComponentCollection#
Central Body Collection.
Overview#
Allow you to iterate through the collection. |
|
Add a central body to the collection. |
|
Remove a central body from the collection. |
|
Remove all central bodies from the collection. |
|
Retrieve a central body from the collection by index. |
|
Retrieve a central body from the collection by name. |
Import detail#
from ansys.stk.core.stkobjects.astrogator import CentralBodyComponentCollection
Property detail#
- 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.remove(self, index_or_name: Any) None #
Remove a central body from the collection.
- CentralBodyComponentCollection.remove_all(self) None #
Remove all central bodies from the collection.
- Returns:
- 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