ScriptingParameterCollection#

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

Bases: IRuntimeTypeInfoProvider

Scripting Parameter Collection.

Overview#

add

Add a parameter to the collection.

cut

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

get_item_by_index

Retrieve a scripting parameter in the collection by index.

get_item_by_name

Retrieve a scripting parameter in the collection by name.

insert_copy

Copy the parameter and inserts the copy into the list.

item

Allow you to iterate through the collection.

paste

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

remove

Remove a parameter.

remove_all

Remove all parameters.

_new_enum

Allow you to enumerate through the collection.

count

Return the size of the collection.

provide_runtime_type_info

Return the RuntimeTypeInfo interface to access properties at runtime.

Import detail#

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

Property detail#

property ScriptingParameterCollection._new_enum: EnumeratorProxy#

Allow you to enumerate through the collection.

property ScriptingParameterCollection.count: int#

Return the size of the collection.

property ScriptingParameterCollection.provide_runtime_type_info: RuntimeTypeInfo#

Return the RuntimeTypeInfo interface to access properties at runtime.

Method detail#

ScriptingParameterCollection.add(self, parameter_name: str) ScriptingParameter#

Add a parameter to the collection.

Parameters:

parameter_name : str

Returns:

ScriptingParameter

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

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

Parameters:

index_or_name : Any

Returns:

None

ScriptingParameterCollection.get_item_by_index(self, index: int) ScriptingParameter#

Retrieve a scripting parameter in the collection by index.

Parameters:

index : int

Returns:

ScriptingParameter

ScriptingParameterCollection.get_item_by_name(self, name: str) ScriptingParameter#

Retrieve a scripting parameter in the collection by name.

Parameters:

name : str

Returns:

ScriptingParameter

ScriptingParameterCollection.insert_copy(self, parameter: ScriptingParameter) ScriptingParameter#

Copy the parameter and inserts the copy into the list.

Parameters:

parameter : ScriptingParameter

Returns:

ScriptingParameter

ScriptingParameterCollection.item(self, index_or_name: Any) ScriptingParameter#

Allow you to iterate through the collection.

Parameters:

index_or_name : Any

Returns:

ScriptingParameter

ScriptingParameterCollection.paste(self) ScriptingParameter#

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

Returns:

ScriptingParameter

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

Remove a parameter.

Parameters:

index_or_name : Any

Returns:

None

ScriptingParameterCollection.remove_all(self) None#

Remove all parameters.

Returns:

None