CompositeCriterionDefinition#

class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.CompositeCriterionDefinition#

Bases: object

CompositeCriterionDefinition class.

Overview#

Add

Adds a CompositeCriterionTerm at the end in the definition.

Clear

Clears all the CompositeCriterionTerms in the definition.

IndexOf

Gives the index where the specified CompositeCriterionTerm exists in the definition.

Insert

Inserts a CompositeCriterionTerm at a specified index in the definition.

RemoveAt

Removes the CompositeCriterionTerm at a specified index in the definition.

Count

Gives the number of CompositeCriterionTerms in the definition.

Item

Item property.

Property detail#

property CompositeCriterionDefinition.Count: int | None#

Gives the number of CompositeCriterionTerms in the definition.

property CompositeCriterionDefinition.Item: Ansys.ACT.Automation.Mechanical.CompositeCriterionTerm | None#

Item property.

Method detail#

CompositeCriterionDefinition.Add(item: Ansys.ACT.Automation.Mechanical.CompositeCriterionTerm) None#
Adds a CompositeCriterionTerm at the end in the definition.
Usage:
    CriterionDefinition.Add(Ansys.ACT.Automation.Mechanical.CompositeCriterionTerm(primCritObj, 1.3))
CompositeCriterionDefinition.Clear() None#

Clears all the CompositeCriterionTerms in the definition.

CompositeCriterionDefinition.IndexOf(item: Ansys.ACT.Automation.Mechanical.CompositeCriterionTerm) int#
Gives the index where the specified CompositeCriterionTerm exists in the definition.
Returns -1 if the term is not found in the definition.
CompositeCriterionDefinition.Insert(index: int, item: Ansys.ACT.Automation.Mechanical.CompositeCriterionTerm) None#
Inserts a CompositeCriterionTerm at a specified index in the definition.
Returns IndexOutOfRangeException for invalid index.
Usage:
    CriterionDefinition.Insert(1, Ansys.ACT.Automation.Mechanical.CompositeCriterionTerm(primCritObj, 1.3))
CompositeCriterionDefinition.RemoveAt(index: int) None#
Removes the CompositeCriterionTerm at a specified index in the definition.
Returns IndexOutOfRangeException for invalid index.