BodyInteractions#

class ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Connections.BodyInteractions(internalObject: Any)#

Bases: object

Defines a BodyInteractions.

Overview#

Activate

Activate the current object.

AddBodyInteraction

Creates a new child BodyInteraction.

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.

CreateObjRef

CreateObjRef method.

CreateParameter

Creates a new parameter for a Property.

Delete

Run the Delete action.

Duplicate

Creates a copy of the current DataModelObject.

Equals

Equals method.

GetAPIName

Property name bound to dispId.

GetAllProperties

GetAllProperties method.

GetChildren

Gets the list of children, filtered by type.

GetDetailsView

GetDetailsView method.

GetEnumName

Enum name bound to value

GetHashCode

GetHashCode method.

GetIconFile

GetIconFile method.

GetLifetimeService

GetLifetimeService method.

GetObjectData

GetObjectData method.

GetParameter

Gets the parameter corresponding to the given property.

GetPath

GetPath method.

GetPropertyName

GetPropertyName method.

GetPropertyValue

GetPropertyValue method.

GetType

GetType method.

GetVisibleProperties

GetVisibleProperties method.

GetVisiblePropertyNames

GetVisiblePropertyNames method.

GroupAllSimilarChildren

Run the GroupAllSimilarChildren action.

GroupSimilarObjects

Run the GroupSimilarObjects action.

InitializeLifetimeService

InitializeLifetimeService method.

IsPropertyEditable

IsPropertyEditable method.

IsPropertyVisible

IsPropertyVisible method.

PropertyByAPIName

Get a property by its API name.

PropertyById

PropertyById method.

PropertyByName

Get a property by its unique name.

RemoveParameter

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

ToString

ToString method.

AttachedRefs

AttachedRefs property.

BodySelfContact

Gets or sets the BodySelfContact.

Children

Gets the list of children.

ClsId

ClsId property.

Comments

Gets the list of associated comments.

ContactDetection

Gets or sets the ContactDetection.

DataModelObjectCategory

Gets the current DataModelObject's category.

EdgeOnEdgeContact

Gets or sets the EdgeOnEdgeContact.

ElementSelfContact

Gets or sets the ElementSelfContact.

Figures

Gets the list of associated figures.

Formulation

Gets or sets the Formulation.

GroupingFolder

GroupingFolder property.

IconName

IconName property.

Images

Gets the list of associated images.

InternalObject

Gets the internal object. For advanced usage only.

LimitingTimestepVelocity

Gets or sets the LimitingTimestepVelocity.

ManualContactTreatment

Gets or sets the ManualContactTreatment.

Name

Name property.

NodalShellThickness

Gets or sets the NodalShellThickness.

ObjectId

ObjectId property.

ObjectState

ObjectState property.

ObjectTags

ObjectTags property.

Parent

Parent property.

PinballFactor

Gets or sets the PinballFactor.

Properties

Gets the list of properties for this object.

ShellThicknessFactor

Gets or sets the ShellThicknessFactor.

SlidingContact

Gets or sets the SlidingContact.

State

State property.

TimestepSafetyFactor

Gets or sets the TimestepSafetyFactor.

Tolerance

Gets or sets the Tolerance.

VisibleProperties

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

Property detail#

property BodyInteractions.AttachedRefs: List[int] | None#

AttachedRefs property.

property BodyInteractions.BodySelfContact: Ansys.Mechanical.DataModel.Enums.YesNoProgrammedControlled | None#

Gets or sets the BodySelfContact.

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

Gets the list of children.

property BodyInteractions.ClsId: int | None#

ClsId property.

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

Gets the list of associated comments.

property BodyInteractions.ContactDetection: Ansys.Mechanical.DataModel.Enums.ContactDetection | None#

Gets or sets the ContactDetection.

property BodyInteractions.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None#

Gets the current DataModelObject's category.

property BodyInteractions.EdgeOnEdgeContact: bool | None#

Gets or sets the EdgeOnEdgeContact.

property BodyInteractions.ElementSelfContact: Ansys.Mechanical.DataModel.Enums.YesNoProgrammedControlled | None#

Gets or sets the ElementSelfContact.

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

Gets the list of associated figures.

property BodyInteractions.Formulation: Ansys.Mechanical.DataModel.Enums.BodyInteractionFormulation | None#

Gets or sets the Formulation.

property BodyInteractions.GroupingFolder: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#

GroupingFolder property.

property BodyInteractions.IconName: str | None#

IconName property.

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

Gets the list of associated images.

property BodyInteractions.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSBodyInteractionGroupAuto | None#

Gets the internal object. For advanced usage only.

property BodyInteractions.LimitingTimestepVelocity: Ansys.Core.Units.Quantity | None#

Gets or sets the LimitingTimestepVelocity.

property BodyInteractions.ManualContactTreatment: Ansys.Mechanical.DataModel.Enums.ManualContactTreatmentType | None#

Gets or sets the ManualContactTreatment.

property BodyInteractions.Name: str | None#

Name property.

property BodyInteractions.NodalShellThickness: Ansys.Mechanical.DataModel.Enums.YesNoProgrammedControlled | None#

Gets or sets the NodalShellThickness.

property BodyInteractions.ObjectId: int | None#

ObjectId property.

property BodyInteractions.ObjectState: Ansys.Mechanical.DataModel.Enums.ObjectState | None#

ObjectState property.

property BodyInteractions.ObjectTags: Iterable[Ansys.Mechanical.DataModel.Interfaces.IObjectTag] | None#

ObjectTags property.

property BodyInteractions.Parent: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#

Parent property.

property BodyInteractions.PinballFactor: float | None#

Gets or sets the PinballFactor.

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

Gets the list of properties for this object.

property BodyInteractions.ShellThicknessFactor: float | None#

Gets or sets the ShellThicknessFactor.

property BodyInteractions.SlidingContact: Ansys.Mechanical.DataModel.Enums.SlidingContactType | None#

Gets or sets the SlidingContact.

property BodyInteractions.State: Ansys.Mechanical.DataModel.Enums.Legacy.State | None#

State property.

property BodyInteractions.TimestepSafetyFactor: float | None#

Gets or sets the TimestepSafetyFactor.

property BodyInteractions.Tolerance: float | None#

Gets or sets the Tolerance.

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

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

Method detail#

BodyInteractions.Activate() None#

Activate the current object.

BodyInteractions.AddBodyInteraction() Ansys.ACT.Automation.Mechanical.Connections.BodyInteraction#

Creates a new child BodyInteraction.

BodyInteractions.AddComment() Ansys.ACT.Automation.Mechanical.Comment#

Creates a new child Comment.

BodyInteractions.AddFigure() Ansys.ACT.Automation.Mechanical.Figure#

Creates a new child Figure.

BodyInteractions.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.
BodyInteractions.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) None#

Copies all visible properties from this object to another.

BodyInteractions.CreateObjRef(requestedType: type) System.Runtime.Remoting.ObjRef#

CreateObjRef method.

BodyInteractions.CreateParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter#

Creates a new parameter for a Property.

BodyInteractions.Delete() None#

Run the Delete action.

BodyInteractions.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject#

Creates a copy of the current DataModelObject.

BodyInteractions.Equals(other: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) bool#

Equals method.

BodyInteractions.GetAPIName(dispId: int) str#

Property name bound to dispId.

BodyInteractions.GetAllProperties() List[Ansys.ACT.Automation.Mechanical.AutomationPropertyWrapper]#

GetAllProperties method.

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

Gets the list of children, filtered by type.

BodyInteractions.GetDetailsView() Ansys.ACT.Automation.Mechanical.DetailsViewData#

GetDetailsView method.

BodyInteractions.GetEnumName(enumType: type, value: int, dispId: int) str#

Enum name bound to value

BodyInteractions.GetHashCode() int#

GetHashCode method.

BodyInteractions.GetIconFile() System.Byte#

GetIconFile method.

BodyInteractions.GetLifetimeService() Any#

GetLifetimeService method.

BodyInteractions.GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext) None#

GetObjectData method.

BodyInteractions.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter#

Gets the parameter corresponding to the given property.

BodyInteractions.GetPath() str#

GetPath method.

BodyInteractions.GetPropertyName(dispId: int) str#

GetPropertyName method.

BodyInteractions.GetPropertyValue(name: str) Any#

GetPropertyValue method.

BodyInteractions.GetType() type#

GetType method.

BodyInteractions.GetVisibleProperties() List[System.Reflection.PropertyInfo]#

GetVisibleProperties method.

BodyInteractions.GetVisiblePropertyNames() List[str]#

GetVisiblePropertyNames method.

BodyInteractions.GroupAllSimilarChildren() None#

Run the GroupAllSimilarChildren action.

BodyInteractions.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder#

Run the GroupSimilarObjects action.

BodyInteractions.InitializeLifetimeService() Any#

InitializeLifetimeService method.

BodyInteractions.IsPropertyEditable(dispId: int) bool#

IsPropertyEditable method.

BodyInteractions.IsPropertyVisible(dispId: int) bool#

IsPropertyVisible method.

BodyInteractions.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.
BodyInteractions.PropertyById(dispId: int) Ansys.ACT.Automation.Mechanical.Property#

PropertyById method.

BodyInteractions.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property#

Get a property by its unique name.

BodyInteractions.RemoveParameter(propName: str) None#

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

BodyInteractions.ToString() str#

ToString method.