Skip to main content

Mechanical scripting interface 2025

`ComplexityIndexConstraint`

Last update: 09.03.2026

class Ansys.ACT.Automation.Mechanical.ComplexityIndexConstraint

Bases: object

Defines a ComplexityIndexConstraint.

Overview

Methods

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

Properties

Name Description
Children Gets the list of children.
DataModelObjectCategory Gets the current DataModelObject’s category.
InternalObject Gets the internal object. For advanced usage only.
Properties Gets the list of properties for this object.
Selection Gets or sets the Selection.
Suppressed Gets or sets the Suppressed.
VisibleProperties Gets the list of properties that are visible for this object.

Property detail

property ComplexityIndexConstraint.Children : List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None

Gets the list of children.

property ComplexityIndexConstraint.DataModelObjectCategory : Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None

Gets the current DataModelObject’s category.

property ComplexityIndexConstraint.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSTopoConstraintAuto | None

Gets the internal object. For advanced usage only.

property ComplexityIndexConstraint.Properties : tuple[Ansys.ACT.Automation.Mechanical.Property] | None

Gets the list of properties for this object.

property ComplexityIndexConstraint.Selection : Ansys.ACT.Automation.Mechanical.OptimizationRegion | None

Gets or sets the Selection.

property ComplexityIndexConstraint.Suppressed : bool | None

Gets or sets the Suppressed.

property ComplexityIndexConstraint.VisibleProperties : tuple[Ansys.ACT.Automation.Mechanical.Property] | None

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

Method detail

ComplexityIndexConstraint.Activate() → None

Activate the current object.

ComplexityIndexConstraint.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) → None

Copies all visible properties from this object to another.

ComplexityIndexConstraint.CreateParameter(propName: str) → Ansys.ACT.Interfaces.Mechanical.IParameter

Creates a new parameter for a Property.

ComplexityIndexConstraint.Delete() → None

Run the Delete action.

ComplexityIndexConstraint.Duplicate() → Ansys.Mechanical.DataModel.Interfaces.IDataModelObject

Creates a copy of the current DataModelObject.

ComplexityIndexConstraint.GetChildren(recurses: bool, children: List[ChildrenType]) → List[ChildrenType]

Gets the list of children, filtered by type.

ComplexityIndexConstraint.GetParameter(propName: str) → Ansys.ACT.Interfaces.Mechanical.IParameter

Gets the parameter corresponding to the given property.

ComplexityIndexConstraint.GroupAllSimilarChildren() → None

Run the GroupAllSimilarChildren action.

ComplexityIndexConstraint.GroupSimilarObjects() → Ansys.ACT.Automation.Mechanical.TreeGroupingFolder

Run the GroupSimilarObjects action.

ComplexityIndexConstraint.PropertyByAPIName(name: str) → Ansys.ACT.Automation.Mechanical.Property

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.

ComplexityIndexConstraint.PropertyByName(name: str) → Ansys.ACT.Automation.Mechanical.Property

Get a property by its unique name.

ComplexityIndexConstraint.RemoveParameter(propName: str) → None

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

ComplexityIndexConstraint.RenameBasedOnDefinition() → None

Run the RenameBasedOnDefinition action.

Connect with Ansys