    

 ## On this page

  

 

 # `ComplexityIndexConstraint`

 Last update: 09.03.2026 

<a id="ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.ComplexityIndexConstraint"></a>

#### *class* Ansys.ACT.Automation.Mechanical.ComplexityIndexConstraint

Bases: [`object`](https://docs.python.org/3/library/functions.html#object)

Defines a ComplexityIndexConstraint.

<a id="overview"></a>

## Overview

### Methods

NameDescription[`Activate`](#ComplexityIndexConstraint.Activate)Activate the current object.[`CopyTo`](#ComplexityIndexConstraint.CopyTo)Copies all visible properties from this object to another.[`CreateParameter`](#ComplexityIndexConstraint.CreateParameter)Creates a new parameter for a Property.[`Delete`](#ComplexityIndexConstraint.Delete)Run the Delete action.[`Duplicate`](#ComplexityIndexConstraint.Duplicate)Creates a copy of the current DataModelObject.[`GetChildren`](#ComplexityIndexConstraint.GetChildren)Gets the list of children, filtered by type.[`GetParameter`](#ComplexityIndexConstraint.GetParameter)Gets the parameter corresponding to the given property.[`GroupAllSimilarChildren`](#ComplexityIndexConstraint.GroupAllSimilarChildren)Run the GroupAllSimilarChildren action.[`GroupSimilarObjects`](#ComplexityIndexConstraint.GroupSimilarObjects)Run the GroupSimilarObjects action.[`PropertyByAPIName`](#ComplexityIndexConstraint.PropertyByAPIName)Get a property by its API name.[`PropertyByName`](#ComplexityIndexConstraint.PropertyByName)Get a property by its unique name.[`RemoveParameter`](#ComplexityIndexConstraint.RemoveParameter)Removes the parameter from the parameter set corresponding to the given property.[`RenameBasedOnDefinition`](#ComplexityIndexConstraint.RenameBasedOnDefinition)Run the RenameBasedOnDefinition action.### Properties

NameDescription[`Children`](#ComplexityIndexConstraint.Children)Gets the list of children.[`DataModelObjectCategory`](#ComplexityIndexConstraint.DataModelObjectCategory)Gets the current DataModelObject's category.[`InternalObject`](#ComplexityIndexConstraint.InternalObject)Gets the internal object. For advanced usage only.[`Properties`](#ComplexityIndexConstraint.Properties)Gets the list of properties for this object.[`ScopingMethod`](#ComplexityIndexConstraint.ScopingMethod)Gets or sets the ScopingMethod.[`Selection`](#ComplexityIndexConstraint.Selection)Gets or sets the Selection.[`Suppressed`](#ComplexityIndexConstraint.Suppressed)Gets or sets the Suppressed.[`VisibleProperties`](#ComplexityIndexConstraint.VisibleProperties)Gets the list of properties that are visible for this object.<a id="property-detail"></a>

## Property detail

<a id="ComplexityIndexConstraint.Children"></a>

### *property* ComplexityIndexConstraint.Children *: List\[[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject](../../../Mechanical/DataModel/Interfaces/IDataModelObject.md#ansys.mechanical.stubs.v261.Ansys.Mechanical.DataModel.Interfaces.IDataModelObject)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of children.

<a id="ComplexityIndexConstraint.DataModelObjectCategory"></a>

### *property* ComplexityIndexConstraint.DataModelObjectCategory *: [Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory](../../../Mechanical/DataModel/Enums/DataModelObjectCategory.md#ansys.mechanical.stubs.v261.Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the current DataModelObject's category.

<a id="ComplexityIndexConstraint.InternalObject"></a>

### *property* ComplexityIndexConstraint.InternalObject *: Ansys.Common.Interop.DSObjectsAuto.IDSTopoConstraintAuto | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the internal object. For advanced usage only.

<a id="ComplexityIndexConstraint.Properties"></a>

### *property* ComplexityIndexConstraint.Properties *: [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)\[Ansys.ACT.Automation.Mechanical.Property\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of properties for this object.

<a id="ComplexityIndexConstraint.ScopingMethod"></a>

### *property* ComplexityIndexConstraint.ScopingMethod *: [Ansys.Mechanical.DataModel.Enums.GeometryDefineByType](../../../Mechanical/DataModel/Enums/GeometryDefineByType.md#ansys.mechanical.stubs.v261.Ansys.Mechanical.DataModel.Enums.GeometryDefineByType) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets or sets the ScopingMethod.

<a id="ComplexityIndexConstraint.Selection"></a>

### *property* ComplexityIndexConstraint.Selection *: [Ansys.ACT.Automation.Mechanical.OptimizationRegion](OptimizationRegion.md#ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.OptimizationRegion) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets or sets the Selection.

<a id="ComplexityIndexConstraint.Suppressed"></a>

### *property* ComplexityIndexConstraint.Suppressed *: [bool](https://docs.python.org/3/library/functions.html#bool) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets or sets the Suppressed.

<a id="ComplexityIndexConstraint.VisibleProperties"></a>

### *property* ComplexityIndexConstraint.VisibleProperties *: [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)\[Ansys.ACT.Automation.Mechanical.Property\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of properties that are visible for this object.

<a id="method-detail"></a>

## Method detail

<a id="ComplexityIndexConstraint.Activate"></a>

### ComplexityIndexConstraint.Activate() → [None](https://docs.python.org/3/library/constants.html#None)

Activate the current object.

<a id="ComplexityIndexConstraint.CopyTo"></a>

### ComplexityIndexConstraint.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) → [None](https://docs.python.org/3/library/constants.html#None)

Copies all visible properties from this object to another.

<a id="ComplexityIndexConstraint.CreateParameter"></a>

### ComplexityIndexConstraint.CreateParameter(propName: [str](https://docs.python.org/3/library/stdtypes.html#str)) → Ansys.ACT.Interfaces.Mechanical.IParameter

Creates a new parameter for a Property.

<a id="ComplexityIndexConstraint.Delete"></a>

### ComplexityIndexConstraint.Delete() → [None](https://docs.python.org/3/library/constants.html#None)

Run the Delete action.

<a id="ComplexityIndexConstraint.Duplicate"></a>

### ComplexityIndexConstraint.Duplicate() → [Ansys.Mechanical.DataModel.Interfaces.IDataModelObject](../../../Mechanical/DataModel/Interfaces/IDataModelObject.md#ansys.mechanical.stubs.v261.Ansys.Mechanical.DataModel.Interfaces.IDataModelObject)

Creates a copy of the current DataModelObject.

<a id="ComplexityIndexConstraint.GetChildren"></a>

### ComplexityIndexConstraint.GetChildren(recurses: [bool](https://docs.python.org/3/library/functions.html#bool), children: List\[ChildrenType\]) → List\[ChildrenType\]

Gets the list of children, filtered by type.

<a id="ComplexityIndexConstraint.GetParameter"></a>

### ComplexityIndexConstraint.GetParameter(propName: [str](https://docs.python.org/3/library/stdtypes.html#str)) → Ansys.ACT.Interfaces.Mechanical.IParameter

Gets the parameter corresponding to the given property.

<a id="ComplexityIndexConstraint.GroupAllSimilarChildren"></a>

### ComplexityIndexConstraint.GroupAllSimilarChildren() → [None](https://docs.python.org/3/library/constants.html#None)

Run the GroupAllSimilarChildren action.

<a id="ComplexityIndexConstraint.GroupSimilarObjects"></a>

### ComplexityIndexConstraint.GroupSimilarObjects() → [Ansys.ACT.Automation.Mechanical.TreeGroupingFolder](TreeGroupingFolder.md#ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.TreeGroupingFolder)

Run the GroupSimilarObjects action.

<a id="ComplexityIndexConstraint.PropertyByAPIName"></a>

### ComplexityIndexConstraint.PropertyByAPIName(name: [str](https://docs.python.org/3/library/stdtypes.html#str)) → Ansys.ACT.Automation.Mechanical.Property

```text
Get a property by its API name.
If multiple properties have the same API Name, only the first property with that name will be returned.

```

<a id="ComplexityIndexConstraint.PropertyByName"></a>

### ComplexityIndexConstraint.PropertyByName(name: [str](https://docs.python.org/3/library/stdtypes.html#str)) → Ansys.ACT.Automation.Mechanical.Property

Get a property by its unique name.

<a id="ComplexityIndexConstraint.RemoveParameter"></a>

### ComplexityIndexConstraint.RemoveParameter(propName: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [None](https://docs.python.org/3/library/constants.html#None)

Removes the parameter from the parameter set corresponding to the given property.

<a id="ComplexityIndexConstraint.RenameBasedOnDefinition"></a>

### ComplexityIndexConstraint.RenameBasedOnDefinition() → [None](https://docs.python.org/3/library/constants.html#None)

Run the RenameBasedOnDefinition action.