    

 ## On this page

  

 

 # `MeshConnectionBase`

 Last update: 09.03.2026 

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

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

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

Defines a MeshConnectionBase.

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

## Overview

### Methods

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

NameDescription[`Children`](#MeshConnectionBase.Children)Gets the list of children.[`Comments`](#MeshConnectionBase.Comments)Gets the list of associated comments.[`DataModelObjectCategory`](#MeshConnectionBase.DataModelObjectCategory)Gets the current DataModelObject’s category.[`Figures`](#MeshConnectionBase.Figures)Gets the list of associated figures.[`Images`](#MeshConnectionBase.Images)Gets the list of associated images.[`InternalObject`](#MeshConnectionBase.InternalObject)Gets the internal object. For advanced usage only.[`MasterBodies`](#MeshConnectionBase.MasterBodies)Gets the MasterBodies.[`MasterLocation`](#MeshConnectionBase.MasterLocation)Gets or sets the MasterLocation.[`Properties`](#MeshConnectionBase.Properties)Gets the list of properties for this object.[`ScopeMode`](#MeshConnectionBase.ScopeMode)Gets the ScopeMode.[`ScopingMethod`](#MeshConnectionBase.ScopingMethod)ScopingMethod property.[`SlaveBodies`](#MeshConnectionBase.SlaveBodies)Gets the SlaveBodies.[`SlaveLocation`](#MeshConnectionBase.SlaveLocation)Gets or sets the SlaveLocation.[`SnapToBoundary`](#MeshConnectionBase.SnapToBoundary)Gets or sets the SnapToBoundary.[`SnapTolerance`](#MeshConnectionBase.SnapTolerance)Gets or sets the SnapTolerance.[`SnapType`](#MeshConnectionBase.SnapType)Gets or sets the SnapType.[`Suppressed`](#MeshConnectionBase.Suppressed)Gets or sets the Suppressed.[`ToleranceSlider`](#MeshConnectionBase.ToleranceSlider)Gets or sets the ToleranceSlider.[`ToleranceType`](#MeshConnectionBase.ToleranceType)Gets or sets the ToleranceType.[`VisibleProperties`](#MeshConnectionBase.VisibleProperties)Gets the list of properties that are visible for this object.<a id="property-detail"></a>

## Property detail

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

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

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

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

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

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

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

Gets the internal object. For advanced usage only.

<a id="MeshConnectionBase.MasterBodies"></a>

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

Gets the MasterBodies.

<a id="MeshConnectionBase.MasterLocation"></a>

### *property* MeshConnectionBase.MasterLocation *: [Ansys.ACT.Interfaces.Common.ISelectionInfo](../../Interfaces/Common/ISelectionInfo.md#ansys.mechanical.stubs.v252.Ansys.ACT.Interfaces.Common.ISelectionInfo) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets or sets the MasterLocation.

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

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

### *property* MeshConnectionBase.ScopeMode *: [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 the ScopeMode.

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

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

ScopingMethod property.

<a id="MeshConnectionBase.SlaveBodies"></a>

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

Gets the SlaveBodies.

<a id="MeshConnectionBase.SlaveLocation"></a>

### *property* MeshConnectionBase.SlaveLocation *: [Ansys.ACT.Interfaces.Common.ISelectionInfo](../../Interfaces/Common/ISelectionInfo.md#ansys.mechanical.stubs.v252.Ansys.ACT.Interfaces.Common.ISelectionInfo) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets or sets the SlaveLocation.

<a id="MeshConnectionBase.SnapToBoundary"></a>

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

Gets or sets the SnapToBoundary.

<a id="MeshConnectionBase.SnapTolerance"></a>

### *property* MeshConnectionBase.SnapTolerance *: [Ansys.Core.Units.Quantity](../../../Core/Units/Quantity.md#ansys.mechanical.stubs.v252.Ansys.Core.Units.Quantity) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets or sets the SnapTolerance.

<a id="MeshConnectionBase.SnapType"></a>

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

Gets or sets the SnapType.

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

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

### *property* MeshConnectionBase.ToleranceSlider *: [int](https://docs.python.org/3/library/functions.html#int) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets or sets the ToleranceSlider.

<a id="MeshConnectionBase.ToleranceType"></a>

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

Gets or sets the ToleranceType.

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

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

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

Activate the current object.

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

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

Creates a new child Comment.

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

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

Creates a new child Figure.

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

### MeshConnectionBase.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="MeshConnectionBase.CopyTo"></a>

### MeshConnectionBase.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="MeshConnectionBase.CreateParameter"></a>

### MeshConnectionBase.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="MeshConnectionBase.Delete"></a>

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

Run the Delete action.

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

### MeshConnectionBase.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="MeshConnectionBase.Generate"></a>

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

Run the Generate action.

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

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

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

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

Run the GroupAllSimilarChildren action.

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

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

Run the GroupSimilarObjects action.

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

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

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

### MeshConnectionBase.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="MeshConnectionBase.RenameBasedOnDefinition"></a>

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

Run the RenameBasedOnDefinition action.