EOIRShapeCollection#

class ansys.stk.core.stkobjects.EOIRShapeCollection#

Collection of shapes.

Overview#

add

Add an element at the end of the collection.

item

Given an index, returns an element in the collection. If the index is an integer, then the method returns the element in the collection at the given position. If the index is a string, then the method returns the element with the specified name.

remove_at

Remove an element at the given index in the collection.

_new_enum

Return an enumerator that can iterate through the collection.

count

Return the number of elements in a collection.

Import detail#

from ansys.stk.core.stkobjects import EOIRShapeCollection

Property detail#

property EOIRShapeCollection._new_enum: EnumeratorProxy#

Return an enumerator that can iterate through the collection.

property EOIRShapeCollection.count: int#

Return the number of elements in a collection.

Method detail#

EOIRShapeCollection.add(self) EOIRShape#

Add an element at the end of the collection.

Returns:

EOIRShape

EOIRShapeCollection.item(self, index: int) EOIRShape#

Given an index, returns an element in the collection. If the index is an integer, then the method returns the element in the collection at the given position. If the index is a string, then the method returns the element with the specified name.

Parameters:

index : int

Returns:

EOIRShape

EOIRShapeCollection.remove_at(self, index: int) None#

Remove an element at the given index in the collection.

Parameters:

index : int

Returns:

None