Skip to main content

Mechanical scripting interface

CompositeCriterionDefinition

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.CompositeCriterionDefinition

Bases: object

CompositeCriterionDefinition class.

Overview

Methods

Name Description
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.

Properties

Name Description
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)

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

CompositeCriterionDefinition.Clear()

Clears all the CompositeCriterionTerms in the definition.

CompositeCriterionDefinition.IndexOf(item: Ansys.ACT.Automation.Mechanical.CompositeCriterionTerm)

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)

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)

Removes the CompositeCriterionTerm at a specified index in the definition.
Returns IndexOutOfRangeException for invalid index.