ObjectLinkCollection#
- class ansys.stk.core.stkobjects.ObjectLinkCollection#
Collection of names of STK objects that are available in the current Scenario.
Overview#
Given an index, returns an element in the collection. |
|
Add to the collection a link to an STK object with the given object path and name. |
|
Remove from the collection a link to the STK object with the given index. |
|
Remove all links from the collection. |
|
Remove from the collection a link to an STK object with the given object path and name. |
|
Add to the collection a link to the given STK object. |
|
Remove from the collection a link to the given STK object. |
|
Determine whether the object with the given name is in the collection. |
|
Search the collection for the specified object and returns a zero-based index of the first occurrence within the collection, if found; otherwise, -1. |
Return the number of elements in a collection. |
|
Return an enumerator that can iterate through the collection. |
|
Return an array of valid objects. |
Import detail#
from ansys.stk.core.stkobjects import ObjectLinkCollection
Property detail#
- property ObjectLinkCollection._new_enum: EnumeratorProxy#
Return an enumerator that can iterate through the collection.
Method detail#
- ObjectLinkCollection.item(self, index: int) ObjectLink #
Given an index, returns an element in the collection.
- Parameters:
index :
int
- Returns:
ObjectLink
- ObjectLinkCollection.add(self, name: str) None #
Add to the collection a link to an STK object with the given object path and name.
- ObjectLinkCollection.remove(self, index: int) None #
Remove from the collection a link to the STK object with the given index.
- ObjectLinkCollection.remove_name(self, name: str) None #
Remove from the collection a link to an STK object with the given object path and name.
- ObjectLinkCollection.add_object(self, object: ISTKObject) None #
Add to the collection a link to the given STK object.
- Parameters:
object :
ISTKObject
- Returns:
- ObjectLinkCollection.remove_object(self, object: ISTKObject) None #
Remove from the collection a link to the given STK object.
- Parameters:
object :
ISTKObject
- Returns: