Skip to main content

Mechanical scripting interface

RepairTopology

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.MeshControls.RepairTopology

Bases: object

Defines a RepairTopology.

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.
GenerateMesh Generate the Mesh.
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.
CollapseShortEdges Gets or sets the CollapseShortEdges.
Comments Gets the list of associated comments.
DataModelObjectCategory Gets the current DataModelObject’s category.
FeatureAngle Gets or sets the FeatureAngle.
Figures Gets the list of associated figures.
FillHole Gets or sets the FillHole.
FillHoleGeometryDefineBy Gets or sets the FillHoleGeometryDefineBy.
FillHoleGeometrySelection Gets or sets the FillHoleGeometrySelection.
FillHoleNamedSelection Gets or sets the FillHoleNamedSelection.
Images Gets the list of associated images.
InternalObject Gets the internal object. For advanced usage only.
MergeFaces Gets or sets the MergeFaces.
MergeFacesGeometryDefineBy Gets or sets the MergeFacesGeometryDefineBy.
MergeFacesGeometrySelection Gets or sets the MergeFacesGeometrySelection.
MergeFacesNamedSelection Gets or sets the MergeFacesNamedSelection.
PartialDefeatureGeometrySelection Gets or sets the partial defeature scoping using geometry selections.
PartialDefeatureNamedSelection Gets or sets the partial defeature scoping using named selections.
PinchFaces Gets or sets the PinchFaces.
PinchFacesGeometryDefineBy Gets or sets the PinchFacesGeometryDefineBy.
PinchFacesGeometrySelection Gets or sets the PinchFacesGeometrySelection.
PinchFacesNamedSelection Gets or sets the PinchFacesNamedSelection.
PinchFacesUseLocalScoping Gets or sets the PinchFacesUseLocalScoping.
PinchTolerance Gets or sets the PinchTolerance.
Properties Gets the list of properties for this object.
RemoveSharpAngleFaces Gets or sets the RemoveSharpAngleFaces.
RemoveThinFaces Gets or sets the RemoveThinFaces.
RepairPartialDefeature Gets or sets the use of partial defeature, which partially removes thin faces and sharp angles within provided tolerances, such that only topology impacting mesh quality is removed.
RepairPartialDefeatureGeometryDefineBy Gets or sets the type of scoping selection to be used with Partial Defeature.
ScopingMethod Gets or sets the ScopingMethod.
SharpAngle Gets or sets the SharpAngle.
SharpAngleGeometryDefineBy Gets or sets the SharpAngleGeometryDefineBy.
SharpAngleGeometrySelection Gets or sets the SharpAngleGeometrySelection.
SharpAngleNamedSelection Gets or sets the SharpAngleNamedSelection.
SharpAngleUseLocalScoping Gets or sets the SharpAngleUseLocalScoping.
ShortEdgeGeometryDefineBy Gets or sets the ShortEdgeGeometryDefineBy.
ShortEdgeGeometrySelection Gets or sets the ShortEdgeGeometrySelection.
ShortEdgeLength Gets or sets the ShortEdgeLength.
ShortEdgeNamedSelection Gets or sets the ShortEdgeNamedSelection.
ShortEdgeUseLocalScoping Gets or sets the ShortEdgeUseLocalScoping.
SuppressEdges Gets or sets the SuppressEdges.
SuppressEdgesGeometryDefineBy Gets or sets the SuppressEdgesGeometryDefineBy.
SuppressEdgesGeometrySelection Gets or sets the SuppressEdgesGeometrySelection.
SuppressEdgesNamedSelection Gets or sets the SuppressEdgesNamedSelection.
Suppressed Gets or sets the Suppressed.
ThinFaceGeometryDefineBy Gets or sets the ThinFaceGeometryDefineBy.
ThinFaceGeometrySelection Gets or sets the ThinFaceGeometrySelection.
ThinFaceNamedSelection Gets or sets the ThinFaceNamedSelection.
ThinFaceWidth Gets or sets the ThinFaceWidth.
ThinFacesUseLocalScoping Gets or sets the ThinFacesUseLocalScoping.
VisibleProperties Gets the list of properties that are visible for this object.

Property detail

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

Gets the list of children.

property RepairTopology.CollapseShortEdges : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the CollapseShortEdges.

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

Gets the list of associated comments.

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

Gets the current DataModelObject’s category.

property RepairTopology.FeatureAngle : Ansys.Core.Units.Quantity | None

Gets or sets the FeatureAngle.

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

Gets the list of associated figures.

property RepairTopology.FillHole : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the FillHole.

property RepairTopology.FillHoleGeometryDefineBy : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

Gets or sets the FillHoleGeometryDefineBy.

property RepairTopology.FillHoleGeometrySelection : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the FillHoleGeometrySelection.

property RepairTopology.FillHoleNamedSelection : Ansys.ACT.Automation.Mechanical.NamedSelection | None

Gets or sets the FillHoleNamedSelection.

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

Gets the list of associated images.

property RepairTopology.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSMeshControlAuto | None

Gets the internal object. For advanced usage only.

property RepairTopology.MergeFaces : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the MergeFaces.

property RepairTopology.MergeFacesGeometryDefineBy : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

Gets or sets the MergeFacesGeometryDefineBy.

property RepairTopology.MergeFacesGeometrySelection : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the MergeFacesGeometrySelection.

property RepairTopology.MergeFacesNamedSelection : Ansys.ACT.Automation.Mechanical.NamedSelection | None

Gets or sets the MergeFacesNamedSelection.

property RepairTopology.PartialDefeatureGeometrySelection : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the partial defeature scoping using geometry selections.

property RepairTopology.PartialDefeatureNamedSelection : Ansys.ACT.Automation.Mechanical.NamedSelection | None

Gets or sets the partial defeature scoping using named selections.

property RepairTopology.PinchFaces : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the PinchFaces.

property RepairTopology.PinchFacesGeometryDefineBy : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

Gets or sets the PinchFacesGeometryDefineBy.

property RepairTopology.PinchFacesGeometrySelection : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the PinchFacesGeometrySelection.

property RepairTopology.PinchFacesNamedSelection : Ansys.ACT.Automation.Mechanical.NamedSelection | None

Gets or sets the PinchFacesNamedSelection.

property RepairTopology.PinchFacesUseLocalScoping : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the PinchFacesUseLocalScoping.

property RepairTopology.PinchTolerance : Ansys.Core.Units.Quantity | None

Gets or sets the PinchTolerance.

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

Gets the list of properties for this object.

property RepairTopology.RemoveSharpAngleFaces : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the RemoveSharpAngleFaces.

property RepairTopology.RemoveThinFaces : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the RemoveThinFaces.

property RepairTopology.RepairPartialDefeature : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the use of partial defeature, which partially removes thin faces and sharp angles within provided tolerances, such that only topology impacting mesh quality is removed.

property RepairTopology.RepairPartialDefeatureGeometryDefineBy : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

Gets or sets the type of scoping selection to be used with Partial Defeature.

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

Gets or sets the ScopingMethod.

property RepairTopology.SharpAngle : Ansys.Core.Units.Quantity | None

Gets or sets the SharpAngle.

property RepairTopology.SharpAngleGeometryDefineBy : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

Gets or sets the SharpAngleGeometryDefineBy.

property RepairTopology.SharpAngleGeometrySelection : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the SharpAngleGeometrySelection.

property RepairTopology.SharpAngleNamedSelection : Ansys.ACT.Automation.Mechanical.NamedSelection | None

Gets or sets the SharpAngleNamedSelection.

property RepairTopology.SharpAngleUseLocalScoping : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the SharpAngleUseLocalScoping.

property RepairTopology.ShortEdgeGeometryDefineBy : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

Gets or sets the ShortEdgeGeometryDefineBy.

property RepairTopology.ShortEdgeGeometrySelection : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the ShortEdgeGeometrySelection.

property RepairTopology.ShortEdgeLength : Ansys.Core.Units.Quantity | None

Gets or sets the ShortEdgeLength.

property RepairTopology.ShortEdgeNamedSelection : Ansys.ACT.Automation.Mechanical.NamedSelection | None

Gets or sets the ShortEdgeNamedSelection.

property RepairTopology.ShortEdgeUseLocalScoping : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the ShortEdgeUseLocalScoping.

property RepairTopology.SuppressEdges : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the SuppressEdges.

property RepairTopology.SuppressEdgesGeometryDefineBy : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

Gets or sets the SuppressEdgesGeometryDefineBy.

property RepairTopology.SuppressEdgesGeometrySelection : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the SuppressEdgesGeometrySelection.

property RepairTopology.SuppressEdgesNamedSelection : Ansys.ACT.Automation.Mechanical.NamedSelection | None

Gets or sets the SuppressEdgesNamedSelection.

property RepairTopology.Suppressed : bool | None

Gets or sets the Suppressed.

property RepairTopology.ThinFaceGeometryDefineBy : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

Gets or sets the ThinFaceGeometryDefineBy.

property RepairTopology.ThinFaceGeometrySelection : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the ThinFaceGeometrySelection.

property RepairTopology.ThinFaceNamedSelection : Ansys.ACT.Automation.Mechanical.NamedSelection | None

Gets or sets the ThinFaceNamedSelection.

property RepairTopology.ThinFaceWidth : Ansys.Core.Units.Quantity | None

Gets or sets the ThinFaceWidth.

property RepairTopology.ThinFacesUseLocalScoping : Ansys.Mechanical.DataModel.Enums.YesNoType | None

Gets or sets the ThinFacesUseLocalScoping.

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

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

Method detail

RepairTopology.Activate()

Activate the current object.

RepairTopology.AddComment()

Creates a new child Comment.

RepairTopology.AddFigure()

Creates a new child Figure.

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

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

Copies all visible properties from this object to another.

RepairTopology.CreateParameter(propName: str)

Creates a new parameter for a Property.

RepairTopology.Delete()

Run the Delete action.

RepairTopology.Duplicate()

Creates a copy of the current DataModelObject.

RepairTopology.GenerateMesh()

Generate the Mesh.

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

Gets the list of children, filtered by type.

RepairTopology.GetParameter(propName: str)

Gets the parameter corresponding to the given property.

RepairTopology.GroupAllSimilarChildren()

Run the GroupAllSimilarChildren action.

RepairTopology.GroupSimilarObjects()

Run the GroupSimilarObjects action.

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

RepairTopology.PropertyByName(name: str)

Get a property by its unique name.

RepairTopology.RemoveParameter(propName: str)

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

RepairTopology.RenameBasedOnDefinition()

Run the RenameBasedOnDefinition action.