ObjectPathCollection#

class ansys.stk.core.stkx.ObjectPathCollection#

Collection of object paths.

Overview#

item

Get the element at the specified index (0-based).

range

Return the elements within the specified range.

count

Number of elements contained in the collection.

_new_enum

Return an object that can be used to iterate through all the object paths in the collection.

Import detail#

from ansys.stk.core.stkx import ObjectPathCollection

Property detail#

property ObjectPathCollection.count: int#

Number of elements contained in the collection.

property ObjectPathCollection._new_enum: EnumeratorProxy#

Return an object that can be used to iterate through all the object paths in the collection.

Method detail#

ObjectPathCollection.item(self, index: int) str#

Get the element at the specified index (0-based).

Parameters:

index : int

Returns:

str

ObjectPathCollection.range(self, start_index: int, stop_index: int) list#

Return the elements within the specified range.

Parameters:

start_index : int

stop_index : int

Returns:

list