Skip to main content

Mechanical scripting interface

MeshConnectionGroup

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.MeshConnectionGroup

Bases: object

Defines a MeshConnectionGroup.

Overview

Methods

Name Description
Activate Activate the current object.
AddComment Creates a new child Comment.
AddContactRegion Creates a new child ContactRegion.
AddFigure Creates a new child Figure.
AddImage Creates a new child Image.
AddInterStage Creates a new child InterStage.
AddJoint Creates a new child Joint.
AddManualMeshConnection Creates a new MeshConnection
AddSpotWeld Creates a new child SpotWeld.
CopyTo Copies all visible properties from this object to another.
CreateAutomaticConnections Run the CreateAutomaticConnections action.
CreateParameter Creates a new parameter for a Property.
Delete Run the Delete action.
DeleteChildren Run the DeleteChildren action with optional verification dialog.
DetectConnections Detect mesh connections.
Duplicate Creates a copy of the current DataModelObject.
Generate Generate mesh connections.
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.
RenameBasedOnChildren Rename the Connection group based on the children.
RepairOverlappingContactRegions Check for Overlapping Contact Regions. However, please note that this action does not result in any actual repair being performed.
SearchConnectionsForDuplicatePairs SearchConnectionsForDuplicatePairs method.
SetDefaultAPDLNames Loop over all the valid contact regions and set the default APDL names.

Properties

Name Description
ActiveConnections Gets the ActiveConnections.
AutomaticFixedJoints Gets or sets the AutomaticFixedJoints.
Children Gets the list of children.
Comments Gets the list of associated comments.
ConnectionType Gets or sets the ConnectionType.
Connections Gets the Connections.
CylindricalFaces Gets or sets the CylindricalFaces.
DataModelObjectCategory Gets the current DataModelObject’s category.
EdgeEdge Gets or sets the EdgeEdge.
EdgeOverlapTolerance Gets or sets the EdgeOverlapTolerance.
FaceAngleTolerance Gets or sets the FaceAngleTolerance.
FaceEdge Gets or sets the FaceEdge.
FaceFace Gets or sets the FaceFace.
FaceFaceDetectionAngleTolerence Gets or sets the FaceFaceDetectionAngleTolerence.
FaceOverlapTolerance Gets or sets the FaceOverlapTolerance.
Figures Gets the list of associated figures.
GroupBy Gets or sets the GroupBy.
Images Gets the list of associated images.
InternalObject Gets the internal object. For advanced usage only.
Location Gets or sets the Location.
MinimumDistancePercentage Gets or sets the MinimumDistancePercentage.
MinimumDistanceValue Gets the MinimumDistanceValue.
Priority Gets or sets the Priority.
Properties Gets the list of properties for this object.
ReadOnly Gets or sets the ReadOnly.
RevoluteJoints Gets or sets the RevoluteJoints.
SearchAcross Gets or sets the SearchAcross.
Suppressed Gets or sets the Suppressed.
ThicknessScaleFactor Gets or sets the ThicknessScaleFactor.
ToleranceSlider Gets or sets the ToleranceSlider.
ToleranceType Gets or sets the ToleranceType.
ToleranceValue Gets or sets the ToleranceValue.
UseRange Gets or sets the UseRange.
VisibleProperties Gets the list of properties that are visible for this object.

Property detail

property MeshConnectionGroup.ActiveConnections : int | None

Gets the ActiveConnections.

property MeshConnectionGroup.AutomaticFixedJoints : bool | None

Gets or sets the AutomaticFixedJoints.

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

Gets the list of children.

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

Gets the list of associated comments.

property MeshConnectionGroup.ConnectionType : Ansys.Mechanical.DataModel.Enums.AutoDetectionType | None

Gets or sets the ConnectionType.

property MeshConnectionGroup.Connections : int | None

Gets the Connections.

property MeshConnectionGroup.CylindricalFaces : Ansys.Mechanical.DataModel.Enums.CylindricalFacesOption | None

Gets or sets the CylindricalFaces.

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

Gets the current DataModelObject’s category.

property MeshConnectionGroup.EdgeEdge : Ansys.Mechanical.DataModel.Enums.ContactEdgeEdgeOption | None

Gets or sets the EdgeEdge.

property MeshConnectionGroup.EdgeOverlapTolerance : int | None

Gets or sets the EdgeOverlapTolerance.

property MeshConnectionGroup.FaceAngleTolerance : Ansys.Core.Units.Quantity | None

Gets or sets the FaceAngleTolerance.

property MeshConnectionGroup.FaceEdge : Ansys.Mechanical.DataModel.Enums.ContactFaceEdgeOption | None

Gets or sets the FaceEdge.

property MeshConnectionGroup.FaceFace : bool | None

Gets or sets the FaceFace.

property MeshConnectionGroup.FaceFaceDetectionAngleTolerence : Ansys.Core.Units.Quantity | None

Gets or sets the FaceFaceDetectionAngleTolerence.

property MeshConnectionGroup.FaceOverlapTolerance : int | None

Gets or sets the FaceOverlapTolerance.

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

Gets the list of associated figures.

property MeshConnectionGroup.GroupBy : Ansys.Mechanical.DataModel.Enums.ContactGroupingType | None

Gets or sets the GroupBy.

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

Gets the list of associated images.

property MeshConnectionGroup.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSConnectionGroupAuto | None

Gets the internal object. For advanced usage only.

property MeshConnectionGroup.Location : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the Location.

property MeshConnectionGroup.MinimumDistancePercentage : int | None

Gets or sets the MinimumDistancePercentage.

property MeshConnectionGroup.MinimumDistanceValue : Ansys.Core.Units.Quantity | None

Gets the MinimumDistanceValue.

property MeshConnectionGroup.Priority : Ansys.Mechanical.DataModel.Enums.ContactFaceEdgePriority | None

Gets or sets the Priority.

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

Gets the list of properties for this object.

property MeshConnectionGroup.ReadOnly : bool | None

Gets or sets the ReadOnly.

property MeshConnectionGroup.RevoluteJoints : bool | None

Gets or sets the RevoluteJoints.

property MeshConnectionGroup.SearchAcross : Ansys.Mechanical.DataModel.Enums.ContactSearchingType | None

Gets or sets the SearchAcross.

property MeshConnectionGroup.Suppressed : bool | None

Gets or sets the Suppressed.

property MeshConnectionGroup.ThicknessScaleFactor : float | None

Gets or sets the ThicknessScaleFactor.

property MeshConnectionGroup.ToleranceSlider : int | None

Gets or sets the ToleranceSlider.

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

Gets or sets the ToleranceType.

property MeshConnectionGroup.ToleranceValue : Ansys.Core.Units.Quantity | None

Gets or sets the ToleranceValue.

property MeshConnectionGroup.UseRange : bool | None

Gets or sets the UseRange.

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

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

Method detail

MeshConnectionGroup.Activate()

Activate the current object.

MeshConnectionGroup.AddComment()

Creates a new child Comment.

MeshConnectionGroup.AddContactRegion()

Creates a new child ContactRegion.

MeshConnectionGroup.AddFigure()

Creates a new child Figure.

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

MeshConnectionGroup.AddInterStage()

Creates a new child InterStage.

MeshConnectionGroup.AddJoint()

Creates a new child Joint.

MeshConnectionGroup.AddManualMeshConnection()

Creates a new MeshConnection

MeshConnectionGroup.AddSpotWeld()

Creates a new child SpotWeld.

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

Copies all visible properties from this object to another.

MeshConnectionGroup.CreateAutomaticConnections()

Run the CreateAutomaticConnections action.

MeshConnectionGroup.CreateParameter(propName: str)

Creates a new parameter for a Property.

MeshConnectionGroup.Delete()

Run the Delete action.

MeshConnectionGroup.DeleteChildren(verificationDialog: bool)

Run the DeleteChildren action with optional verification dialog.

MeshConnectionGroup.DetectConnections()

Detect mesh connections.

MeshConnectionGroup.Duplicate()

Creates a copy of the current DataModelObject.

MeshConnectionGroup.Generate()

Generate mesh connections.

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

Gets the list of children, filtered by type.

MeshConnectionGroup.GetParameter(propName: str)

Gets the parameter corresponding to the given property.

MeshConnectionGroup.GroupAllSimilarChildren()

Run the GroupAllSimilarChildren action.

MeshConnectionGroup.GroupSimilarObjects()

Run the GroupSimilarObjects action.

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

MeshConnectionGroup.PropertyByName(name: str)

Get a property by its unique name.

MeshConnectionGroup.RemoveParameter(propName: str)

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

MeshConnectionGroup.RenameBasedOnChildren()

Rename the Connection group based on the children.

MeshConnectionGroup.RepairOverlappingContactRegions()

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

MeshConnectionGroup.SearchConnectionsForDuplicatePairs()

SearchConnectionsForDuplicatePairs method.

MeshConnectionGroup.SetDefaultAPDLNames()

Loop over all the valid contact regions and set the default APDL names.