NamedSelectionCriteria#

class ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.NamedSelectionCriteria#

Bases: object

A collection of named selection criteria.

Overview#

Add

Adds the given criterion to the collection.

Clear

Clears the collection.

Contains

Returns whether the collection contains the given criterion.

CopyTo

CopyTo method.

Equals

Equals method.

GetEnumerator

GetEnumerator method.

GetHashCode

GetHashCode method.

GetType

GetType method.

IndexOf

Returns the index of the given criterion if it exists in the collection. Returns -1 if it does not

Insert

Inserts the given criterion into the collection at the given index.

Remove

Removes the given criterion from the collection if it exists in the collection. Throws an exception if it does not.

RemoveAt

Removes the criterion at the given index. Throws an exception if the given index is not valid.

ToString

ToString method.

Count

The number of criteria in the collection.

IsReadOnly

IsReadOnly property.

Item

Item property.

Property detail#

property NamedSelectionCriteria.Count: int | None#

The number of criteria in the collection.

property NamedSelectionCriteria.IsReadOnly: bool | None#

IsReadOnly property.

property NamedSelectionCriteria.Item: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion | None#

Item property.

Method detail#

NamedSelectionCriteria.Add(criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) None#

Adds the given criterion to the collection.

NamedSelectionCriteria.Clear() None#

Clears the collection.

NamedSelectionCriteria.Contains(criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) bool#

Returns whether the collection contains the given criterion.

NamedSelectionCriteria.CopyTo(criteria: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion, index: int) None#

CopyTo method.

NamedSelectionCriteria.Equals(obj: Any) bool#

Equals method.

NamedSelectionCriteria.GetEnumerator() Ansys.ACT.Automation.Mechanical.CriterionEnumerator#

GetEnumerator method.

NamedSelectionCriteria.GetHashCode() int#

GetHashCode method.

NamedSelectionCriteria.GetType() type#

GetType method.

NamedSelectionCriteria.IndexOf(criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) int#

Returns the index of the given criterion if it exists in the collection. Returns -1 if it does not

NamedSelectionCriteria.Insert(index: int, criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) None#

Inserts the given criterion into the collection at the given index.

NamedSelectionCriteria.Remove(criterion: Ansys.ACT.Automation.Mechanical.NamedSelectionCriterion) bool#

Removes the given criterion from the collection if it exists in the collection. Throws an exception if it does not.

NamedSelectionCriteria.RemoveAt(index: int) None#

Removes the criterion at the given index. Throws an exception if the given index is not valid.

NamedSelectionCriteria.ToString() str#

ToString method.