Skip to main content

Mechanical scripting interface 2025

`Connections`

Last update: 09.03.2026

class Ansys.ACT.Automation.Mechanical.Connections.Connections

Bases: object

Defines a Connections.

Overview

Methods

Name Description
Activate Activate the current object.
AddAMBondConnection Creates a new AMBondConnection
AddBeam Creates a new Beam
AddBearing Creates a new Bearing
AddBodyInteraction Creates a new child BodyInteraction.
AddComment Creates a new child Comment.
AddConnectionGroup Creates a new ConnectionGroup
AddContactRegion Creates a new child ContactRegion.
AddContactSolutionInformation Creates a new ContactSolutionInformation
AddContactTool Creates a new ContactTool
AddEndRelease Creates a new EndRelease
AddFigure Creates a new child Figure.
AddImage Creates a new child Image.
AddInterStage Creates a new child InterStage.
AddJoint Creates a new child Joint.
AddSpotWeld Creates a new child SpotWeld.
AddSpotWeldGroup Creates a new child SpotWeldGroup.
AddSpring Creates a new Spring
CopyTo Copies all visible properties from this object to another.
CreateAutomaticConnections Run the CreateAutomaticConnections action.
CreateParameter Creates a new parameter for a Property.
Duplicate Creates a copy of the current DataModelObject.
ExportModelTopology ExportModelTopology method.
GenerateInitialContactResults Generate Initial Contact Results and Mesh Parts
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.
RepairOverlappingContactRegions Check for Overlapping Contact Regions. However, please note that this action does not result in any actual repair being performed.
SearchConnectionsForDuplicatePairs Run the SearchConnectionsForDuplicatePairs 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.
FixedJoints Gets or sets the FixedJoints.
GenerateAutomaticConnectionOnRefresh Gets or sets the GenerateAutomaticConnectionOnRefresh.
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.
SolverFilesDirectory Gets or sets the SolverFilesDirectory.
TransparencyEnabled Gets or sets the TransparencyEnabled.
VisibleProperties Gets the list of properties that are visible for this object.

Property detail

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

Gets the list of children.

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

Gets the list of associated comments.

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

Gets the current DataModelObject’s category.

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

Gets the list of associated figures.

property Connections.FixedJoints : bool | None

Gets or sets the FixedJoints.

property Connections.GenerateAutomaticConnectionOnRefresh : Ansys.Mechanical.DataModel.Enums.AutomaticOrManual | None

Gets or sets the GenerateAutomaticConnectionOnRefresh.

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

Gets the list of associated images.

property Connections.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSContactGroupAuto | None

Gets the internal object. For advanced usage only.

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

Gets the list of properties for this object.

property Connections.SolverFilesDirectory : str | None

Gets or sets the SolverFilesDirectory.

property Connections.TransparencyEnabled : bool | None

Gets or sets the TransparencyEnabled.

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

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

Method detail

Connections.Activate() → None

Activate the current object.

Connections.AddAMBondConnection() → Ansys.ACT.Automation.Mechanical.Connections.AMBondConnection

Creates a new AMBondConnection

Connections.AddBeam() → Ansys.ACT.Automation.Mechanical.Connections.Beam

Creates a new Beam

Connections.AddBearing() → Ansys.ACT.Automation.Mechanical.Connections.Bearing

Creates a new Bearing

Connections.AddBodyInteraction() → Ansys.ACT.Automation.Mechanical.Connections.BodyInteraction

Creates a new child BodyInteraction.

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

Creates a new child Comment.

Connections.AddConnectionGroup() → Ansys.ACT.Automation.Mechanical.Connections.ConnectionGroup

Creates a new ConnectionGroup

Connections.AddContactRegion() → Ansys.ACT.Automation.Mechanical.Connections.ContactRegion

Creates a new child ContactRegion.

Connections.AddContactSolutionInformation() → Ansys.ACT.Automation.Mechanical.ContactSolutionInformation

Creates a new ContactSolutionInformation

Connections.AddContactTool() → Ansys.ACT.Automation.Mechanical.PreContactTool

Creates a new ContactTool

Connections.AddEndRelease() → Ansys.ACT.Automation.Mechanical.EndRelease

Creates a new EndRelease

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

Creates a new child Figure.

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

Connections.AddInterStage() → Ansys.ACT.Automation.Mechanical.Connections.ContactRegion

Creates a new child InterStage.

Connections.AddJoint() → Ansys.ACT.Automation.Mechanical.Connections.Joint

Creates a new child Joint.

Connections.AddSpotWeld() → Ansys.ACT.Automation.Mechanical.Connections.ContactRegion

Creates a new child SpotWeld.

Connections.AddSpotWeldGroup() → Ansys.ACT.Automation.Mechanical.Connections.SpotWeldGroup

Creates a new child SpotWeldGroup.

Connections.AddSpring() → Ansys.ACT.Automation.Mechanical.Connections.Spring

Creates a new Spring

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

Copies all visible properties from this object to another.

Connections.CreateAutomaticConnections() → None

Run the CreateAutomaticConnections action.

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

Creates a new parameter for a Property.

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

Creates a copy of the current DataModelObject.

Connections.ExportModelTopology(filename: str) → None

ExportModelTopology method.

Connections.GenerateInitialContactResults() → None

Generate Initial Contact Results and Mesh Parts

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

Gets the list of children, filtered by type.

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

Gets the parameter corresponding to the given property.

Connections.GroupAllSimilarChildren() → None

Run the GroupAllSimilarChildren action.

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

Run the GroupSimilarObjects action.

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

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

Get a property by its unique name.

Connections.RemoveParameter(propName: str) → None

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

Connections.RepairOverlappingContactRegions() → None

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

Connections.SearchConnectionsForDuplicatePairs() → None

Run the SearchConnectionsForDuplicatePairs action.

Connect with Ansys