ConstraintCollection#
- class ansys.stk.core.stkobjects.astrogator.ConstraintCollection#
The Constraint component folder.
Overview#
Add a constraint to the collection. |
|
Copy the constraint into the clipboard and removes the constraint from the list. |
|
Retrieve a constraint from the collection by index. |
|
Retrieve a constraint from the collection by name. |
|
Copy the constraint and inserts the copy into the list. |
|
Iterate through the collection. |
|
Pastes the constraint from the clipboard and inserts into the list. |
|
Remove a specified constraint from the collection. |
Import detail#
from ansys.stk.core.stkobjects.astrogator import ConstraintCollection
Property detail#
- property ConstraintCollection._new_enum: EnumeratorProxy#
A property that allows you to enumerate through the collection.
Method detail#
- ConstraintCollection.add(self, result_name: str) AsTriggerCondition#
Add a constraint to the collection.
- Parameters:
result_name :
str- Returns:
AsTriggerCondition
- ConstraintCollection.cut(self, index_or_name: Any) None#
Copy the constraint into the clipboard and removes the constraint from the list.
- ConstraintCollection.get_item_by_index(self, index: int) AsTriggerCondition#
Retrieve a constraint from the collection by index.
- Parameters:
index :
int- Returns:
AsTriggerCondition
- ConstraintCollection.get_item_by_name(self, name: str) AsTriggerCondition#
Retrieve a constraint from the collection by name.
- Parameters:
name :
str- Returns:
AsTriggerCondition
- ConstraintCollection.insert_copy(self, cond: AsTriggerCondition) AsTriggerCondition#
Copy the constraint and inserts the copy into the list.
- Parameters:
cond :
AsTriggerCondition- Returns:
AsTriggerCondition
- ConstraintCollection.item(self, index_or_name: Any) AsTriggerCondition#
Iterate through the collection.
- Parameters:
index_or_name :
Any- Returns:
AsTriggerCondition
- ConstraintCollection.paste(self) AsTriggerCondition#
Pastes the constraint from the clipboard and inserts into the list.
- Returns:
AsTriggerCondition