Skip to main content

Mechanical scripting interface

MeshEdit

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.MeshEdit

Bases: object

Defines a MeshEdit.

Overview

Methods

Name Description
Activate Activate the current object.
AddComment Creates a new child Comment.
AddContactMatchGroup Creates a new ContactMatchGroup
AddDirectMorph Creates a new DirectMorph
AddFigure Creates a new child Figure.
AddImage Creates a new child Image.
AddManualMeshConnection Add a new ManualMeshConnection
AddMeshConnectionGroup Creates a new MeshConnectionGroup
AddNodeMerge Add a new NodeMerge.
AddNodeMergeGroup Creates a new NodeMergeGroup
AddNodeMove Creates a new NodeMove
AddPullExtrude Creates a new MeshExtrude
AddPullRevolve Creates a new MeshExtrude
AddPullSurfaceCoating Creates a new MeshExtrude
ClearGeneratedData Clear the generated data.
CopyTo Copies all visible properties from this object to another.
CreateNamedSelectionForSharedNodes Run the CreateNamedSelectionForSharedNodes action.
CreateParameter Creates a new parameter for a Property.
Duplicate Creates a copy of the current DataModelObject.
Generate Generate all mesh edits.
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.
SearchConnectionsForDuplicatePairs Run the SearchConnectionsForDuplicatePairs action.

Properties

Name Description
AssociateToPullGeometry To Migrate Boundary Conditions from profile to resulting Pull bodies.
Children Gets the list of children.
Comments Gets the list of associated comments.
DataModelObjectCategory Gets the current DataModelObject’s category.
Figures Gets the list of associated figures.
GenerateAutomaticMeshConnectionsOnRefresh Gets or sets the GenerateAutomaticMeshConnectionsOnRefresh.
Images Gets the list of associated images.
InternalObject Gets the internal object. For advanced usage only.
Properties Gets the list of properties for this object.
TransparencyEnabled Gets or sets the TransparencyEnabled.
VisibleProperties Gets the list of properties that are visible for this object.

Property detail

property MeshEdit.AssociateToPullGeometry : bool | None

To Migrate Boundary Conditions from profile to resulting Pull bodies.

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

Gets the list of children.

property MeshEdit.Comments : Iterable[Ansys.ACT.Automation.Mechanical.Comment] | None

Gets the list of associated comments.

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

Gets the current DataModelObject’s category.

property MeshEdit.Figures : Iterable[Ansys.ACT.Automation.Mechanical.Figure] | None

Gets the list of associated figures.

property MeshEdit.GenerateAutomaticMeshConnectionsOnRefresh : Ansys.Mechanical.DataModel.Enums.AutomaticOrManual | None

Gets or sets the GenerateAutomaticMeshConnectionsOnRefresh.

property MeshEdit.Images : Iterable[Ansys.ACT.Automation.Mechanical.Image] | None

Gets the list of associated images.

property MeshEdit.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSMeshConnectionsParentAuto | None

Gets the internal object. For advanced usage only.

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

Gets the list of properties for this object.

property MeshEdit.TransparencyEnabled : bool | None

Gets or sets the TransparencyEnabled.

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

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

Method detail

MeshEdit.Activate()

Activate the current object.

MeshEdit.AddComment()

Creates a new child Comment.

MeshEdit.AddContactMatchGroup()

Creates a new ContactMatchGroup

MeshEdit.AddDirectMorph()

Creates a new DirectMorph

MeshEdit.AddFigure()

Creates a new child Figure.

MeshEdit.AddImage(filePath: str)

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.

MeshEdit.AddManualMeshConnection()

Add a new ManualMeshConnection

MeshEdit.AddMeshConnectionGroup()

Creates a new MeshConnectionGroup

MeshEdit.AddNodeMerge()

Add a new NodeMerge.

MeshEdit.AddNodeMergeGroup()

Creates a new NodeMergeGroup

MeshEdit.AddNodeMove()

Creates a new NodeMove

MeshEdit.AddPullExtrude()

Creates a new MeshExtrude

MeshEdit.AddPullRevolve()

Creates a new MeshExtrude

MeshEdit.AddPullSurfaceCoating()

Creates a new MeshExtrude

MeshEdit.ClearGeneratedData()

Clear the generated data.

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

Copies all visible properties from this object to another.

MeshEdit.CreateNamedSelectionForSharedNodes()

Run the CreateNamedSelectionForSharedNodes action.

MeshEdit.CreateParameter(propName: str)

Creates a new parameter for a Property.

MeshEdit.Duplicate()

Creates a copy of the current DataModelObject.

MeshEdit.Generate()

Generate all mesh edits.

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

Gets the list of children, filtered by type.

MeshEdit.GetParameter(propName: str)

Gets the parameter corresponding to the given property.

MeshEdit.GroupAllSimilarChildren()

Run the GroupAllSimilarChildren action.

MeshEdit.GroupSimilarObjects()

Run the GroupSimilarObjects action.

MeshEdit.PropertyByAPIName(name: str)

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.

MeshEdit.PropertyByName(name: str)

Get a property by its unique name.

MeshEdit.RemoveParameter(propName: str)

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

MeshEdit.RenameBasedOnDefinition()

Run the RenameBasedOnDefinition action.

MeshEdit.SearchConnectionsForDuplicatePairs()

Run the SearchConnectionsForDuplicatePairs action.