    

 ## On this page

  

 

 # `MeshEdit`

 Last update: 16.07.2025 

<a id="ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.MeshEdit"></a>

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

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

Defines a MeshEdit.

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

## Overview

### Methods

NameDescription[`Activate`](#MeshEdit.Activate)Activate the current object.[`AddComment`](#MeshEdit.AddComment)Creates a new child Comment.[`AddContactMatchGroup`](#MeshEdit.AddContactMatchGroup)Creates a new ContactMatchGroup[`AddDirectMorph`](#MeshEdit.AddDirectMorph)Creates a new DirectMorph[`AddFigure`](#MeshEdit.AddFigure)Creates a new child Figure.[`AddImage`](#MeshEdit.AddImage)Creates a new child Image.[`AddManualMeshConnection`](#MeshEdit.AddManualMeshConnection)Add a new ManualMeshConnection[`AddMeshConnectionGroup`](#MeshEdit.AddMeshConnectionGroup)Creates a new MeshConnectionGroup[`AddNodeMerge`](#MeshEdit.AddNodeMerge)Add a new NodeMerge.[`AddNodeMergeGroup`](#MeshEdit.AddNodeMergeGroup)Creates a new NodeMergeGroup[`AddNodeMove`](#MeshEdit.AddNodeMove)Creates a new NodeMove[`AddPullExtrude`](#MeshEdit.AddPullExtrude)Creates a new MeshExtrude[`AddPullRevolve`](#MeshEdit.AddPullRevolve)Creates a new MeshExtrude[`AddPullSurfaceCoating`](#MeshEdit.AddPullSurfaceCoating)Creates a new MeshExtrude[`ClearGeneratedData`](#MeshEdit.ClearGeneratedData)Clear the generated data.[`CopyTo`](#MeshEdit.CopyTo)Copies all visible properties from this object to another.[`CreateNamedSelectionForSharedNodes`](#MeshEdit.CreateNamedSelectionForSharedNodes)Run the CreateNamedSelectionForSharedNodes action.[`CreateParameter`](#MeshEdit.CreateParameter)Creates a new parameter for a Property.[`Duplicate`](#MeshEdit.Duplicate)Creates a copy of the current DataModelObject.[`Generate`](#MeshEdit.Generate)Generate all mesh edits.[`GetChildren`](#MeshEdit.GetChildren)Gets the list of children, filtered by type.[`GetParameter`](#MeshEdit.GetParameter)Gets the parameter corresponding to the given property.[`GroupAllSimilarChildren`](#MeshEdit.GroupAllSimilarChildren)Run the GroupAllSimilarChildren action.[`GroupSimilarObjects`](#MeshEdit.GroupSimilarObjects)Run the GroupSimilarObjects action.[`PropertyByAPIName`](#MeshEdit.PropertyByAPIName)Get a property by its API name.[`PropertyByName`](#MeshEdit.PropertyByName)Get a property by its unique name.[`RemoveParameter`](#MeshEdit.RemoveParameter)Removes the parameter from the parameter set corresponding to the given property.[`RenameBasedOnDefinition`](#MeshEdit.RenameBasedOnDefinition)Run the RenameBasedOnDefinition action.[`SearchConnectionsForDuplicatePairs`](#MeshEdit.SearchConnectionsForDuplicatePairs)Run the SearchConnectionsForDuplicatePairs action.### Properties

NameDescription[`AssociateToPullGeometry`](#MeshEdit.AssociateToPullGeometry)To Migrate Boundary Conditions from profile to resulting Pull bodies.[`Children`](#MeshEdit.Children)Gets the list of children.[`Comments`](#MeshEdit.Comments)Gets the list of associated comments.[`DataModelObjectCategory`](#MeshEdit.DataModelObjectCategory)Gets the current DataModelObject’s category.[`Figures`](#MeshEdit.Figures)Gets the list of associated figures.[`GenerateAutomaticMeshConnectionsOnRefresh`](#MeshEdit.GenerateAutomaticMeshConnectionsOnRefresh)Gets or sets the GenerateAutomaticMeshConnectionsOnRefresh.[`Images`](#MeshEdit.Images)Gets the list of associated images.[`InternalObject`](#MeshEdit.InternalObject)Gets the internal object. For advanced usage only.[`Properties`](#MeshEdit.Properties)Gets the list of properties for this object.[`TransparencyEnabled`](#MeshEdit.TransparencyEnabled)Gets or sets the TransparencyEnabled.[`VisibleProperties`](#MeshEdit.VisibleProperties)Gets the list of properties that are visible for this object.<a id="property-detail"></a>

## Property detail

<a id="MeshEdit.AssociateToPullGeometry"></a>

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

To Migrate Boundary Conditions from profile to resulting Pull bodies.

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

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

Gets the list of children.

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

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

Gets the list of associated comments.

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

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

Gets the current DataModelObject’s category.

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

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

Gets the list of associated figures.

<a id="MeshEdit.GenerateAutomaticMeshConnectionsOnRefresh"></a>

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

Gets or sets the GenerateAutomaticMeshConnectionsOnRefresh.

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

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

Gets the list of associated images.

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

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

Gets the internal object. For advanced usage only.

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

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

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

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

### MeshEdit.Activate()

Activate the current object.

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

### MeshEdit.AddComment()

Creates a new child Comment.

<a id="MeshEdit.AddContactMatchGroup"></a>

### MeshEdit.AddContactMatchGroup()

Creates a new ContactMatchGroup

<a id="MeshEdit.AddDirectMorph"></a>

### MeshEdit.AddDirectMorph()

Creates a new DirectMorph

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

### MeshEdit.AddFigure()

Creates a new child Figure.

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

### MeshEdit.AddImage(filePath: [str](https://docs.python.org/3/library/stdtypes.html#str))

```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="MeshEdit.AddManualMeshConnection"></a>

### MeshEdit.AddManualMeshConnection()

Add a new ManualMeshConnection

<a id="MeshEdit.AddMeshConnectionGroup"></a>

### MeshEdit.AddMeshConnectionGroup()

Creates a new MeshConnectionGroup

<a id="MeshEdit.AddNodeMerge"></a>

### MeshEdit.AddNodeMerge()

Add a new NodeMerge.

<a id="MeshEdit.AddNodeMergeGroup"></a>

### MeshEdit.AddNodeMergeGroup()

Creates a new NodeMergeGroup

<a id="MeshEdit.AddNodeMove"></a>

### MeshEdit.AddNodeMove()

Creates a new NodeMove

<a id="MeshEdit.AddPullExtrude"></a>

### MeshEdit.AddPullExtrude()

Creates a new MeshExtrude

<a id="MeshEdit.AddPullRevolve"></a>

### MeshEdit.AddPullRevolve()

Creates a new MeshExtrude

<a id="MeshEdit.AddPullSurfaceCoating"></a>

### MeshEdit.AddPullSurfaceCoating()

Creates a new MeshExtrude

<a id="MeshEdit.ClearGeneratedData"></a>

### MeshEdit.ClearGeneratedData()

Clear the generated data.

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

### MeshEdit.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject)

Copies all visible properties from this object to another.

<a id="MeshEdit.CreateNamedSelectionForSharedNodes"></a>

### MeshEdit.CreateNamedSelectionForSharedNodes()

Run the CreateNamedSelectionForSharedNodes action.

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

### MeshEdit.CreateParameter(propName: [str](https://docs.python.org/3/library/stdtypes.html#str))

Creates a new parameter for a Property.

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

### MeshEdit.Duplicate()

Creates a copy of the current DataModelObject.

<a id="MeshEdit.Generate"></a>

### MeshEdit.Generate()

Generate all mesh edits.

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

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

Gets the list of children, filtered by type.

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

### MeshEdit.GetParameter(propName: [str](https://docs.python.org/3/library/stdtypes.html#str))

Gets the parameter corresponding to the given property.

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

### MeshEdit.GroupAllSimilarChildren()

Run the GroupAllSimilarChildren action.

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

### MeshEdit.GroupSimilarObjects()

Run the GroupSimilarObjects action.

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

### MeshEdit.PropertyByAPIName(name: [str](https://docs.python.org/3/library/stdtypes.html#str))

```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="MeshEdit.PropertyByName"></a>

### MeshEdit.PropertyByName(name: [str](https://docs.python.org/3/library/stdtypes.html#str))

Get a property by its unique name.

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

### MeshEdit.RemoveParameter(propName: [str](https://docs.python.org/3/library/stdtypes.html#str))

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

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

### MeshEdit.RenameBasedOnDefinition()

Run the RenameBasedOnDefinition action.

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

### MeshEdit.SearchConnectionsForDuplicatePairs()

Run the SearchConnectionsForDuplicatePairs action.