Skip to main content

Mechanical scripting interface

Crack

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.Crack

Bases: object

Defines a Crack.

Overview

Methods

Name Description
Activate Activate the current object.
AddCommandSnippet Creates a new CommandSnippet
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.
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.

Properties

Name Description
AlignWithFaceNormal Gets or sets the AlignWithFaceNormal.
BottomFaceNodes Gets or sets the BottomFaceNodes.
Children Gets the list of children.
CircumferentialDivisions Gets or sets the CircumferentialDivisions.
Comments Gets the list of associated comments.
Contact1Nodes Gets or sets the Contact1Nodes.
ContactPairsNodes Gets or sets the ContactPairsNodes.
CoordinateSystem Gets or sets the CoordinateSystem.
CrackFacesNodes Gets or sets the CrackFacesNodes.
CrackFrontDivisions Gets or sets the CrackFrontDivisions.
CrackFrontNodes Gets or sets the CrackFrontNodes.
CrackID Gets the CrackID.
CrackShape Gets the CrackShape.
CrackSourceType Gets the CrackSourceType.
DataModelObjectCategory Gets the current DataModelObject’s category.
FaceTopNodes Gets or sets the FaceTopNodes.
Figures Gets the list of associated figures.
FractureAffectedZone Gets or sets the FractureAffectedZone.
FractureAffectedZoneHeight Gets or sets the FractureAffectedZoneHeight.
Images Gets the list of associated images.
InternalObject Gets the internal object. For advanced usage only.
LargestContourRadius Gets or sets the LargestContourRadius.
Location Gets the Location.
MajorRadius Gets or sets the MajorRadius.
MeshContours Gets or sets the MeshContours.
MinorRadius Gets or sets the MinorRadius.
ProjectToNearestSurface Gets or sets the ProjectToNearestSurface.
Properties Gets the list of properties for this object.
ReadOnly Gets or sets the ReadOnly.
SolutionContours Gets or sets the SolutionContours.
Suppressed Gets or sets the Suppressed.
Target1Nodes Gets or sets the Target1Nodes.
VisibleProperties Gets the list of properties that are visible for this object.
XScaleFactor Gets or sets the XScaleFactor.
YScaleFactor Gets or sets the YScaleFactor.
ZScaleFactor Gets or sets the ZScaleFactor.

Property detail

property Crack.AlignWithFaceNormal : bool | None

Gets or sets the AlignWithFaceNormal.

property Crack.BottomFaceNodes : str | None

Gets or sets the BottomFaceNodes.

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

Gets the list of children.

property Crack.CircumferentialDivisions : int | None

Gets or sets the CircumferentialDivisions.

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

Gets the list of associated comments.

property Crack.Contact1Nodes : str | None

Gets or sets the Contact1Nodes.

property Crack.ContactPairsNodes : bool | None

Gets or sets the ContactPairsNodes.

property Crack.CoordinateSystem : Ansys.ACT.Automation.Mechanical.CoordinateSystem | None

Gets or sets the CoordinateSystem.

property Crack.CrackFacesNodes : bool | None

Gets or sets the CrackFacesNodes.

property Crack.CrackFrontDivisions : int | None

Gets or sets the CrackFrontDivisions.

property Crack.CrackFrontNodes : str | None

Gets or sets the CrackFrontNodes.

property Crack.CrackID : int | None

Gets the CrackID.

property Crack.CrackShape : Ansys.Mechanical.DataModel.Enums.CrackShapeType | None

Gets the CrackShape.

property Crack.CrackSourceType : Ansys.Mechanical.DataModel.Enums.CrackSourceType | None

Gets the CrackSourceType.

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

Gets the current DataModelObject’s category.

property Crack.FaceTopNodes : str | None

Gets or sets the FaceTopNodes.

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

Gets the list of associated figures.

property Crack.FractureAffectedZone : Ansys.Core.Units.Quantity | None

Gets or sets the FractureAffectedZone.

property Crack.FractureAffectedZoneHeight : Ansys.Core.Units.Quantity | None

Gets or sets the FractureAffectedZoneHeight.

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

Gets the list of associated images.

property Crack.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSCrackAuto | None

Gets the internal object. For advanced usage only.

property Crack.LargestContourRadius : Ansys.Core.Units.Quantity | None

Gets or sets the LargestContourRadius.

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

Gets the Location.

property Crack.MajorRadius : Ansys.Core.Units.Quantity | None

Gets or sets the MajorRadius.

property Crack.MeshContours : int | None

Gets or sets the MeshContours.

property Crack.MinorRadius : Ansys.Core.Units.Quantity | None

Gets or sets the MinorRadius.

property Crack.ProjectToNearestSurface : bool | None

Gets or sets the ProjectToNearestSurface.

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

Gets the list of properties for this object.

property Crack.ReadOnly : bool | None

Gets or sets the ReadOnly.

property Crack.SolutionContours : int | None

Gets or sets the SolutionContours.

property Crack.Suppressed : bool | None

Gets or sets the Suppressed.

property Crack.Target1Nodes : str | None

Gets or sets the Target1Nodes.

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

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

property Crack.XScaleFactor : float | None

Gets or sets the XScaleFactor.

property Crack.YScaleFactor : float | None

Gets or sets the YScaleFactor.

property Crack.ZScaleFactor : float | None

Gets or sets the ZScaleFactor.

Method detail

Crack.Activate()

Activate the current object.

Crack.AddCommandSnippet()

Creates a new CommandSnippet

Crack.AddComment()

Creates a new child Comment.

Crack.AddFigure()

Creates a new child Figure.

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

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

Copies all visible properties from this object to another.

Crack.CreateParameter(propName: str)

Creates a new parameter for a Property.

Crack.Delete()

Run the Delete action.

Crack.Duplicate()

Creates a copy of the current DataModelObject.

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

Gets the list of children, filtered by type.

Crack.GetParameter(propName: str)

Gets the parameter corresponding to the given property.

Crack.GroupAllSimilarChildren()

Run the GroupAllSimilarChildren action.

Crack.GroupSimilarObjects()

Run the GroupSimilarObjects action.

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

Crack.PropertyByName(name: str)

Get a property by its unique name.

Crack.RemoveParameter(propName: str)

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