AccessConstraintAnalysisWorkbenchCollection#

class ansys.stk.core.stkobjects.AccessConstraintAnalysisWorkbenchCollection#

Bases: IAccessConstraint

Collection of Analysis Workbench constraints.

Overview#

remove_index

Remove an item given an index.

remove_all

Remove all items from the collection.

remove_constraint

Remove a Analysis Workbench using Reference/Component.

add_constraint

Add a constraint to the AWB Constraint Collection.

get_available_references

Return an array of available References.

item

Get an AccessConstraintAnalysisWorkbench interface using an index.

count

Number of items in the collection.

_new_enum

Enumerate the AccessConstraintAnalysisWorkbench interfaces.

Import detail#

from ansys.stk.core.stkobjects import AccessConstraintAnalysisWorkbenchCollection

Property detail#

property AccessConstraintAnalysisWorkbenchCollection.count: int#

Number of items in the collection.

property AccessConstraintAnalysisWorkbenchCollection._new_enum: EnumeratorProxy#

Enumerate the AccessConstraintAnalysisWorkbench interfaces.

Method detail#

AccessConstraintAnalysisWorkbenchCollection.remove_index(self, index: int) None#

Remove an item given an index.

Parameters:

index : int

Returns:

None

AccessConstraintAnalysisWorkbenchCollection.remove_all(self) None#

Remove all items from the collection.

Returns:

None

AccessConstraintAnalysisWorkbenchCollection.remove_constraint(self, type: AnalysisWorkbenchAccessConstraintType, reference: str) None#

Remove a Analysis Workbench using Reference/Component.

Parameters:

type : AnalysisWorkbenchAccessConstraintType

reference : str

Returns:

None

AccessConstraintAnalysisWorkbenchCollection.add_constraint(self, constraint: AnalysisWorkbenchAccessConstraintType, reference: str) IAccessConstraint#

Add a constraint to the AWB Constraint Collection.

Parameters:

constraint : AnalysisWorkbenchAccessConstraintType

reference : str

Returns:

IAccessConstraint

AccessConstraintAnalysisWorkbenchCollection.get_available_references(self, type: AnalysisWorkbenchAccessConstraintType) list#

Return an array of available References.

Parameters:

type : AnalysisWorkbenchAccessConstraintType

Returns:

list

AccessConstraintAnalysisWorkbenchCollection.item(self, index: int) AccessConstraintAnalysisWorkbench#

Get an AccessConstraintAnalysisWorkbench interface using an index.

Parameters:

index : int

Returns:

AccessConstraintAnalysisWorkbench