    

 ## On this page

  

 

 # `Connections`

 Last update: 09.03.2026 

<a id="ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.Connections"></a>

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

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

Defines a Connections.

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

## Overview

### Methods

NameDescription[`Activate`](#Connections.Activate)Activate the current object.[`AddAMBondConnection`](#Connections.AddAMBondConnection)Creates a new AMBondConnection[`AddBeam`](#Connections.AddBeam)Creates a new Beam[`AddBearing`](#Connections.AddBearing)Creates a new Bearing[`AddBodyInteraction`](#Connections.AddBodyInteraction)Creates a new child BodyInteraction.[`AddComment`](#Connections.AddComment)Creates a new child Comment.[`AddConnectionGroup`](#Connections.AddConnectionGroup)Creates a new ConnectionGroup[`AddContactRegion`](#Connections.AddContactRegion)Creates a new child ContactRegion.[`AddContactSolutionInformation`](#Connections.AddContactSolutionInformation)Creates a new ContactSolutionInformation[`AddContactTool`](#Connections.AddContactTool)Creates a new ContactTool[`AddEndRelease`](#Connections.AddEndRelease)Creates a new EndRelease[`AddFigure`](#Connections.AddFigure)Creates a new child Figure.[`AddImage`](#Connections.AddImage)Creates a new child Image.[`AddInterStage`](#Connections.AddInterStage)Creates a new child InterStage.[`AddJoint`](#Connections.AddJoint)Creates a new child Joint.[`AddSpotWeld`](#Connections.AddSpotWeld)Creates a new child SpotWeld.[`AddSpotWeldGroup`](#Connections.AddSpotWeldGroup)Creates a new child SpotWeldGroup.[`AddSpring`](#Connections.AddSpring)Creates a new Spring[`CopyTo`](#Connections.CopyTo)Copies all visible properties from this object to another.[`CreateAutomaticConnections`](#Connections.CreateAutomaticConnections)Run the CreateAutomaticConnections action.[`CreateParameter`](#Connections.CreateParameter)Creates a new parameter for a Property.[`Duplicate`](#Connections.Duplicate)Creates a copy of the current DataModelObject.[`ExportModelTopology`](#Connections.ExportModelTopology)ExportModelTopology method.[`GenerateInitialContactResults`](#Connections.GenerateInitialContactResults)Generate Initial Contact Results and Mesh Parts[`GetChildren`](#Connections.GetChildren)Gets the list of children, filtered by type.[`GetParameter`](#Connections.GetParameter)Gets the parameter corresponding to the given property.[`GroupAllSimilarChildren`](#Connections.GroupAllSimilarChildren)Run the GroupAllSimilarChildren action.[`GroupSimilarObjects`](#Connections.GroupSimilarObjects)Run the GroupSimilarObjects action.[`PropertyByAPIName`](#Connections.PropertyByAPIName)Get a property by its API name.[`PropertyByName`](#Connections.PropertyByName)Get a property by its unique name.[`RemoveParameter`](#Connections.RemoveParameter)Removes the parameter from the parameter set corresponding to the given property.[`RepairOverlappingContactRegions`](#Connections.RepairOverlappingContactRegions)Check for Overlapping Contact Regions. However, please note that this action does not result in any actual repair being performed.[`SearchConnectionsForDuplicatePairs`](#Connections.SearchConnectionsForDuplicatePairs)Run the SearchConnectionsForDuplicatePairs action.### Properties

NameDescription[`Children`](#Connections.Children)Gets the list of children.[`Comments`](#Connections.Comments)Gets the list of associated comments.[`DataModelObjectCategory`](#Connections.DataModelObjectCategory)Gets the current DataModelObject’s category.[`Figures`](#Connections.Figures)Gets the list of associated figures.[`FixedJoints`](#Connections.FixedJoints)Gets or sets the FixedJoints.[`GenerateAutomaticConnectionOnRefresh`](#Connections.GenerateAutomaticConnectionOnRefresh)Gets or sets the GenerateAutomaticConnectionOnRefresh.[`Images`](#Connections.Images)Gets the list of associated images.[`InternalObject`](#Connections.InternalObject)Gets the internal object. For advanced usage only.[`Properties`](#Connections.Properties)Gets the list of properties for this object.[`SolverFilesDirectory`](#Connections.SolverFilesDirectory)Gets or sets the SolverFilesDirectory.[`TransparencyEnabled`](#Connections.TransparencyEnabled)Gets or sets the TransparencyEnabled.[`VisibleProperties`](#Connections.VisibleProperties)Gets the list of properties that are visible for this object.<a id="property-detail"></a>

## Property detail

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

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

Gets the list of children.

<a id="Connections.Comments"></a>

### *property* Connections.Comments *: Iterable\[[Ansys.ACT.Automation.Mechanical.Comment](../Comment.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Comment)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of associated comments.

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

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

Gets the current DataModelObject’s category.

<a id="Connections.Figures"></a>

### *property* Connections.Figures *: Iterable\[[Ansys.ACT.Automation.Mechanical.Figure](../Figure.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Figure)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of associated figures.

<a id="Connections.FixedJoints"></a>

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

Gets or sets the FixedJoints.

<a id="Connections.GenerateAutomaticConnectionOnRefresh"></a>

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

Gets or sets the GenerateAutomaticConnectionOnRefresh.

<a id="Connections.Images"></a>

### *property* Connections.Images *: Iterable\[[Ansys.ACT.Automation.Mechanical.Image](../Image.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Image)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of associated images.

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

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

Gets the internal object. For advanced usage only.

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

### *property* Connections.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="Connections.SolverFilesDirectory"></a>

### *property* Connections.SolverFilesDirectory *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets or sets the SolverFilesDirectory.

<a id="Connections.TransparencyEnabled"></a>

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

Gets or sets the TransparencyEnabled.

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

### *property* Connections.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="Connections.Activate"></a>

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

Activate the current object.

<a id="Connections.AddAMBondConnection"></a>

### Connections.AddAMBondConnection() → [Ansys.ACT.Automation.Mechanical.Connections.AMBondConnection](AMBondConnection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.AMBondConnection)

Creates a new AMBondConnection

<a id="Connections.AddBeam"></a>

### Connections.AddBeam() → [Ansys.ACT.Automation.Mechanical.Connections.Beam](Beam.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.Beam)

Creates a new Beam

<a id="Connections.AddBearing"></a>

### Connections.AddBearing() → [Ansys.ACT.Automation.Mechanical.Connections.Bearing](Bearing.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.Bearing)

Creates a new Bearing

<a id="Connections.AddBodyInteraction"></a>

### Connections.AddBodyInteraction() → [Ansys.ACT.Automation.Mechanical.Connections.BodyInteraction](BodyInteraction.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.BodyInteraction)

Creates a new child BodyInteraction.

<a id="Connections.AddComment"></a>

### Connections.AddComment() → [Ansys.ACT.Automation.Mechanical.Comment](../Comment.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Comment)

Creates a new child Comment.

<a id="Connections.AddConnectionGroup"></a>

### Connections.AddConnectionGroup() → [Ansys.ACT.Automation.Mechanical.Connections.ConnectionGroup](ConnectionGroup.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.ConnectionGroup)

Creates a new ConnectionGroup

<a id="Connections.AddContactRegion"></a>

### Connections.AddContactRegion() → [Ansys.ACT.Automation.Mechanical.Connections.ContactRegion](ContactRegion.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.ContactRegion)

Creates a new child ContactRegion.

<a id="Connections.AddContactSolutionInformation"></a>

### Connections.AddContactSolutionInformation() → [Ansys.ACT.Automation.Mechanical.ContactSolutionInformation](../ContactSolutionInformation.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.ContactSolutionInformation)

Creates a new ContactSolutionInformation

<a id="Connections.AddContactTool"></a>

### Connections.AddContactTool() → [Ansys.ACT.Automation.Mechanical.PreContactTool](../PreContactTool.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.PreContactTool)

Creates a new ContactTool

<a id="Connections.AddEndRelease"></a>

### Connections.AddEndRelease() → [Ansys.ACT.Automation.Mechanical.EndRelease](../EndRelease.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.EndRelease)

Creates a new EndRelease

<a id="Connections.AddFigure"></a>

### Connections.AddFigure() → [Ansys.ACT.Automation.Mechanical.Figure](../Figure.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Figure)

Creates a new child Figure.

<a id="Connections.AddImage"></a>

### Connections.AddImage(filePath: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [Ansys.ACT.Automation.Mechanical.Image](../Image.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Image)

```text
Creates a new child Image.
If a filePath is provided, the image will be loaded from that file,
if not, the image will be a screen capture of the Geometry window.

```

<a id="Connections.AddInterStage"></a>

### Connections.AddInterStage() → [Ansys.ACT.Automation.Mechanical.Connections.ContactRegion](ContactRegion.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.ContactRegion)

Creates a new child InterStage.

<a id="Connections.AddJoint"></a>

### Connections.AddJoint() → [Ansys.ACT.Automation.Mechanical.Connections.Joint](Joint.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.Joint)

Creates a new child Joint.

<a id="Connections.AddSpotWeld"></a>

### Connections.AddSpotWeld() → [Ansys.ACT.Automation.Mechanical.Connections.ContactRegion](ContactRegion.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.ContactRegion)

Creates a new child SpotWeld.

<a id="Connections.AddSpotWeldGroup"></a>

### Connections.AddSpotWeldGroup() → [Ansys.ACT.Automation.Mechanical.Connections.SpotWeldGroup](SpotWeldGroup.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.SpotWeldGroup)

Creates a new child SpotWeldGroup.

<a id="Connections.AddSpring"></a>

### Connections.AddSpring() → [Ansys.ACT.Automation.Mechanical.Connections.Spring](Spring.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.Connections.Spring)

Creates a new Spring

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

### Connections.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="Connections.CreateAutomaticConnections"></a>

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

Run the CreateAutomaticConnections action.

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

### Connections.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="Connections.Duplicate"></a>

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

Creates a copy of the current DataModelObject.

<a id="Connections.ExportModelTopology"></a>

### Connections.ExportModelTopology(filename: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [None](https://docs.python.org/3/library/constants.html#None)

ExportModelTopology method.

<a id="Connections.GenerateInitialContactResults"></a>

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

Generate Initial Contact Results and Mesh Parts

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

### Connections.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="Connections.GetParameter"></a>

### Connections.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="Connections.GroupAllSimilarChildren"></a>

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

Run the GroupAllSimilarChildren action.

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

### Connections.GroupSimilarObjects() → [Ansys.ACT.Automation.Mechanical.TreeGroupingFolder](../TreeGroupingFolder.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.TreeGroupingFolder)

Run the GroupSimilarObjects action.

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

### Connections.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="Connections.PropertyByName"></a>

### Connections.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="Connections.RemoveParameter"></a>

### Connections.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="Connections.RepairOverlappingContactRegions"></a>

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

Check for Overlapping Contact Regions. However, please note that this action does not result in any actual repair being performed.

<a id="Connections.SearchConnectionsForDuplicatePairs"></a>

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

Run the SearchConnectionsForDuplicatePairs action.