Skip to main content

Mechanical scripting interface

AMProcess

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.AMProcess

Bases: object

Defines a AMProcess.

Overview

Methods

Name Description
Activate Activate the current object.
AddCartesianMesh AddCartesianMesh method.
AddComment Creates a new child Comment.
AddFigure Creates a new child Figure.
AddGeneratedAMSupport Creates a new GeneratedAMSupport
AddImage Creates a new child Image.
AddPredefinedAMSupport Creates a new PredefinedAMSupport
AddSTLAMSupport Creates a new STLAMSupport
AddSupportGroup Creates a new AMSupportGroup
CleanAMStrains Run the CleanAMStrains action.
CopyTo Copies all visible properties from this object to another.
CreateAMBondConnections Run the CreateAMBondConnections action.
CreateBuildToBaseContact Run the CreateBuildToBaseContact action.
CreateParameter Creates a new parameter for a Property.
Delete Run the Delete action.
Duplicate Creates a copy of the current DataModelObject.
GenerateAMStrains Run the GenerateAMStrains action.
GetChildren Gets the list of children, filtered by type.
GetParameter Gets the parameter corresponding to the given property.
GetSequence Gets the support removal sequence for a given environment.
GroupAllSimilarChildren Run the GroupAllSimilarChildren action.
GroupSimilarObjects Run the GroupSimilarObjects action.
HasAMStrains Get the HasAMStrains property.
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.
ResetAllSequences Resets the sequence for all analyses

Properties

Name Description
BaseGeometry Gets or sets the BaseGeometry.
BuildGeometry Gets or sets the PartGeometry using the deprecated BuildGeometry method.
Children Gets the list of children.
Comments Gets the list of associated comments.
DataModelObjectCategory Gets the current DataModelObject’s category.
ElementSize Gets or sets the ElementSize.
Figures Gets the list of associated figures.
Images Gets the list of associated images.
InternalObject Gets the internal object. For advanced usage only.
LayerHeight Gets the element layer height used for the AM build step.
LengthUnits Gets or sets the LengthUnits.
MeshUsingVoxelization Gets or sets the MeshUsingVoxelization.
NonlinearEffects Gets or sets the NonlinearEffects.
PartGeometry Gets or sets the PartGeometry.
Properties Gets the list of properties for this object.
SubsampleRate Gets or sets the SubsampleRate.
VisibleProperties Gets the list of properties that are visible for this object.
WallThickness Gets or sets the WallThickness.
ZLocationAtTopOfBase Gets the ZLocationAtTopOfBase.

Property detail

property AMProcess.BaseGeometry : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the BaseGeometry.

property AMProcess.BuildGeometry : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the PartGeometry using the deprecated BuildGeometry method.

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

Gets the list of children.

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

Gets the list of associated comments.

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

Gets the current DataModelObject’s category.

property AMProcess.ElementSize : Ansys.Core.Units.Quantity | None

Gets or sets the ElementSize.

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

Gets the list of associated figures.

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

Gets the list of associated images.

property AMProcess.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSAMProcessSimulationAuto | None

Gets the internal object. For advanced usage only.

property AMProcess.LayerHeight : Ansys.Core.Units.Quantity | None

Gets the element layer height used for the AM build step.

property AMProcess.LengthUnits : Ansys.Mechanical.DataModel.Enums.WBUnitSystemType | None

Gets or sets the LengthUnits.

property AMProcess.MeshUsingVoxelization : bool | None

Gets or sets the MeshUsingVoxelization.

property AMProcess.NonlinearEffects : bool | None

Gets or sets the NonlinearEffects.

property AMProcess.PartGeometry : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the PartGeometry.

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

Gets the list of properties for this object.

property AMProcess.SubsampleRate : int | None

Gets or sets the SubsampleRate.

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

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

property AMProcess.WallThickness : Ansys.Core.Units.Quantity | None

Gets or sets the WallThickness.

property AMProcess.ZLocationAtTopOfBase : Ansys.Core.Units.Quantity | None

Gets the ZLocationAtTopOfBase.

Method detail

AMProcess.Activate()

Activate the current object.

AMProcess.AddCartesianMesh()

AddCartesianMesh method.

AMProcess.AddComment()

Creates a new child Comment.

AMProcess.AddFigure()

Creates a new child Figure.

AMProcess.AddGeneratedAMSupport()

Creates a new GeneratedAMSupport

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

AMProcess.AddPredefinedAMSupport()

Creates a new PredefinedAMSupport

AMProcess.AddSTLAMSupport()

Creates a new STLAMSupport

AMProcess.AddSupportGroup()

Creates a new AMSupportGroup

AMProcess.CleanAMStrains()

Run the CleanAMStrains action.

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

Copies all visible properties from this object to another.

AMProcess.CreateAMBondConnections()

Run the CreateAMBondConnections action.

AMProcess.CreateBuildToBaseContact()

Run the CreateBuildToBaseContact action.

AMProcess.CreateParameter(propName: str)

Creates a new parameter for a Property.

AMProcess.Delete()

Run the Delete action.

AMProcess.Duplicate()

Creates a copy of the current DataModelObject.

AMProcess.GenerateAMStrains()

Run the GenerateAMStrains action.

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

Gets the list of children, filtered by type.

AMProcess.GetParameter(propName: str)

Gets the parameter corresponding to the given property.

AMProcess.GetSequence(analysis: Ansys.ACT.Automation.Mechanical.Analysis)

Gets the support removal sequence for a given environment.

AMProcess.GroupAllSimilarChildren()

Run the GroupAllSimilarChildren action.

AMProcess.GroupSimilarObjects()

Run the GroupSimilarObjects action.

AMProcess.HasAMStrains()

Get the HasAMStrains property.

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

AMProcess.PropertyByName(name: str)

Get a property by its unique name.

AMProcess.RemoveParameter(propName: str)

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

AMProcess.ResetAllSequences()

Resets the sequence for all analyses