Skip to main content

Mechanical scripting interface 2025

`MeshConnectionBase`

Last update: 09.03.2026

class Ansys.ACT.Automation.Mechanical.MeshConnectionBase

Bases: object

Defines a MeshConnectionBase.

Overview

Methods

Name Description
Activate Activate the current object.
AddComment Creates a new child Comment.
AddFigure Creates a new child Figure.
AddImage Creates a new child Image.
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.
Generate Run the Generate action.
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.
Comments Gets the list of associated comments.
DataModelObjectCategory Gets the current DataModelObject’s category.
Figures Gets the list of associated figures.
Images Gets the list of associated images.
InternalObject Gets the internal object. For advanced usage only.
MasterBodies Gets the MasterBodies.
MasterLocation Gets or sets the MasterLocation.
Properties Gets the list of properties for this object.
ScopeMode Gets the ScopeMode.
ScopingMethod ScopingMethod property.
SlaveBodies Gets the SlaveBodies.
SlaveLocation Gets or sets the SlaveLocation.
SnapToBoundary Gets or sets the SnapToBoundary.
SnapTolerance Gets or sets the SnapTolerance.
SnapType Gets or sets the SnapType.
Suppressed Gets or sets the Suppressed.
ToleranceSlider Gets or sets the ToleranceSlider.
ToleranceType Gets or sets the ToleranceType.
VisibleProperties Gets the list of properties that are visible for this object.

Property detail

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

Gets the list of children.

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

Gets the list of associated comments.

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

Gets the current DataModelObject’s category.

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

Gets the list of associated figures.

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

Gets the list of associated images.

property MeshConnectionBase.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSMeshConnectionAuto | None

Gets the internal object. For advanced usage only.

property MeshConnectionBase.MasterBodies : str | None

Gets the MasterBodies.

property MeshConnectionBase.MasterLocation : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the MasterLocation.

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

Gets the list of properties for this object.

property MeshConnectionBase.ScopeMode : Ansys.Mechanical.DataModel.Enums.AutomaticOrManual | None

Gets the ScopeMode.

property MeshConnectionBase.ScopingMethod : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

ScopingMethod property.

property MeshConnectionBase.SlaveBodies : str | None

Gets the SlaveBodies.

property MeshConnectionBase.SlaveLocation : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the SlaveLocation.

property MeshConnectionBase.SnapToBoundary : bool | None

Gets or sets the SnapToBoundary.

property MeshConnectionBase.SnapTolerance : Ansys.Core.Units.Quantity | None

Gets or sets the SnapTolerance.

property MeshConnectionBase.SnapType : Ansys.Mechanical.DataModel.Enums.SnapType | None

Gets or sets the SnapType.

property MeshConnectionBase.Suppressed : bool | None

Gets or sets the Suppressed.

property MeshConnectionBase.ToleranceSlider : int | None

Gets or sets the ToleranceSlider.

property MeshConnectionBase.ToleranceType : Ansys.Mechanical.DataModel.Enums.ContactToleranceType | None

Gets or sets the ToleranceType.

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

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

Method detail

MeshConnectionBase.Activate() → None

Activate the current object.

MeshConnectionBase.AddComment() → Ansys.ACT.Automation.Mechanical.Comment

Creates a new child Comment.

MeshConnectionBase.AddFigure() → Ansys.ACT.Automation.Mechanical.Figure

Creates a new child Figure.

MeshConnectionBase.AddImage(filePath: str) → Ansys.ACT.Automation.Mechanical.Image

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.

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

Copies all visible properties from this object to another.

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

Creates a new parameter for a Property.

MeshConnectionBase.Delete() → None

Run the Delete action.

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

Creates a copy of the current DataModelObject.

MeshConnectionBase.Generate() → None

Run the Generate action.

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

Gets the list of children, filtered by type.

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

Gets the parameter corresponding to the given property.

MeshConnectionBase.GroupAllSimilarChildren() → None

Run the GroupAllSimilarChildren action.

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

Run the GroupSimilarObjects action.

MeshConnectionBase.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.

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

Get a property by its unique name.

MeshConnectionBase.RemoveParameter(propName: str) → None

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

MeshConnectionBase.RenameBasedOnDefinition() → None

Run the RenameBasedOnDefinition action.

Connect with Ansys