ChainConnectionCollection#
- class ansys.stk.core.stkobjects.ChainConnectionCollection#
Class defining a collection of Chain connections.
Overview#
Add and returns a new connection with the corresponding values. |
|
Add with the option for a parent restriction and returns a new connection with the corresponding values. A Constellation or Subset must be one of the input objects. |
|
Clear all connections values from the collection. |
|
Given an index, returns the element in the collection. |
|
Given the From and To objects of a connection, returns the element in the collection. |
|
Remove the connection for the input from-to object pair. |
|
Remove the connection with the input index. |
Import detail#
from ansys.stk.core.stkobjects import ChainConnectionCollection
Property detail#
- property ChainConnectionCollection._new_enum: EnumeratorProxy#
Return an enumerator for the collection.
Method detail#
- ChainConnectionCollection.add(self, from_object: ISTKObject, to_object: ISTKObject, min_num_uses: int, max_num_uses: int) ChainConnection #
Add and returns a new connection with the corresponding values.
- ChainConnectionCollection.add_with_parent_restriction(self, from_object: ISTKObject, to_object: ISTKObject, min_num_uses: int, max_num_uses: int, parent_restriction: ChainParentPlatformRestriction) ChainConnection #
Add with the option for a parent restriction and returns a new connection with the corresponding values. A Constellation or Subset must be one of the input objects.
- ChainConnectionCollection.clear(self) None #
Clear all connections values from the collection.
- Returns:
- ChainConnectionCollection.item(self, index: int) ChainConnection #
Given an index, returns the element in the collection.
- Parameters:
index :
int
- Returns:
ChainConnection
- ChainConnectionCollection.item_by_from_to_objects(self, from_object: ISTKObject, to_object: ISTKObject) ChainConnection #
Given the From and To objects of a connection, returns the element in the collection.
- Parameters:
from_object :
ISTKObject
to_object :
ISTKObject
- Returns:
ChainConnection
- ChainConnectionCollection.remove(self, from_object: ISTKObject, to_object: ISTKObject) None #
Remove the connection for the input from-to object pair.
- Parameters:
from_object :
ISTKObject
to_object :
ISTKObject
- Returns: