ProfileCollection#

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

Bases: IRuntimeTypeInfoProvider

The Profiles of a Target Sequence.

Overview#

add

Add a profile.

item

Allow you to iterate through the collection.

remove

Remove an item from the profile collection.

remove_all

Remove all profiles from the profile collection.

cut

Copy the profile into the clipboard and removes profile from the list.

paste

Pastes the profile from the clipboard and inserts into the list.

insert_copy

Copy the profile and inserts the copy into the list.

add2

Add a profile.

get_item_by_index

Retrieve a profile from the collection by index.

get_item_by_name

Retrieve a profile from the collection by name.

_new_enum

Allow you to enumerate through the collection.

count

Return the size of the collection.

available_profiles

Return a list of available profiles.

provide_runtime_type_info

Return the RuntimeTypeInfo interface to access properties at runtime.

Import detail#

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

Property detail#

property ProfileCollection._new_enum: EnumeratorProxy#

Allow you to enumerate through the collection.

property ProfileCollection.count: int#

Return the size of the collection.

property ProfileCollection.available_profiles: list#

Return a list of available profiles.

property ProfileCollection.provide_runtime_type_info: RuntimeTypeInfo#

Return the RuntimeTypeInfo interface to access properties at runtime.

Method detail#

ProfileCollection.add(self, profile_name: str) IProfile#

Add a profile.

Parameters:

profile_name : str

Returns:

IProfile

ProfileCollection.item(self, index_or_name: Any) IProfile#

Allow you to iterate through the collection.

Parameters:

index_or_name : Any

Returns:

IProfile

ProfileCollection.remove(self, index_or_profile_name: Any) None#

Remove an item from the profile collection.

Parameters:

index_or_profile_name : Any

Returns:

None

ProfileCollection.remove_all(self) None#

Remove all profiles from the profile collection.

Returns:

None

ProfileCollection.cut(self, index_or_name: Any) None#

Copy the profile into the clipboard and removes profile from the list.

Parameters:

index_or_name : Any

Returns:

None

ProfileCollection.paste(self, index_or_name: Any, direction: ProfileInsertDirection) IProfile#

Pastes the profile from the clipboard and inserts into the list.

Parameters:

index_or_name : Any

direction : ProfileInsertDirection

Returns:

IProfile

ProfileCollection.insert_copy(self, profile: IProfile, index_or_name: Any, direction: ProfileInsertDirection) IProfile#

Copy the profile and inserts the copy into the list.

Parameters:

profile : IProfile

index_or_name : Any

direction : ProfileInsertDirection

Returns:

IProfile

ProfileCollection.add2(self, profile_name: str, index_or_name: Any, direction: ProfileInsertDirection) IProfile#

Add a profile.

Parameters:

profile_name : str

index_or_name : Any

direction : ProfileInsertDirection

Returns:

IProfile

ProfileCollection.get_item_by_index(self, index: int) IProfile#

Retrieve a profile from the collection by index.

Parameters:

index : int

Returns:

IProfile

ProfileCollection.get_item_by_name(self, name: str) IProfile#

Retrieve a profile from the collection by name.

Parameters:

name : str

Returns:

IProfile