AMSupportRemovalSequence#

class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.AMSupportRemovalSequence#

Bases: object

AMSupportRemovalSequence class.

Overview#

Add

Adds a support or base removal step.

RemoveAt

Remove AM step at index.

Swap

Swaps two steps in the Removal sequence.

Swap

Swaps two steps in the Removal sequence by name.

IndexOf

Returns index of removal object

Insert

Inserts a given step at particular index(zero based)

Contains

Returns true if the step exists in the sequencer. If not, returns false

Count

Count property.

Property detail#

property AMSupportRemovalSequence.Count: System.Int32 | None

Count property.

Method detail#

AMSupportRemovalSequence.Add(item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) System.Void
Adds a support or base removal step.
Throws a notSupportedException if the same step was already added.
Usage:
 removalSequence.Add(Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.BaseRemoval())
 removalSequence.Add(Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.SupportRemoval(supportObj))
AMSupportRemovalSequence.RemoveAt(index: System.Int32) System.Void
Remove AM step at index.
Throws IndexOutOfRangeException if index is out of range
Usage:
 removalSequence.RemoveAt(0)
AMSupportRemovalSequence.Swap(item1: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep, item2: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) System.Boolean
Swaps two steps in the Removal sequence.
Returns true if successful and false if unsuccessful
Usage:
C#
 removalSequence.Swap(
    new Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.BaseRemoval(),
    new Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.SupportRemoval(supportObj));
Python
 removalSequence.Swap(
    Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.BaseRemoval(),
    Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.SupportRemoval(supportObj))
AMSupportRemovalSequence.Swap(index1: System.Int32, index2: System.Int32) System.Boolean
Swaps two steps in the Removal sequence by name.
Returns true if successful and false if unsuccessful
Usage:
 removalSequence.Swap("Base", "Generated Support 1")
AMSupportRemovalSequence.IndexOf(item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) System.Int32
Returns index of removal object
Returns -1 if removal object not found
Usage:
C#
    index1 = removalSequence.IndexOf(new Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.BaseRemoval());
    index2 = removalSequence.IndexOf(new Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.SupportRemoval(supportObj));
Python
    index1 = removalSequence.IndexOf(Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.BaseRemoval());
    index2 = removalSequence.IndexOf(Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.SupportRemoval(supportObj));
AMSupportRemovalSequence.Insert(index: System.Int32, item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) System.Void
Inserts a given step at particular index(zero based)
Throws an IndexOutOfRangeException if the step is being inserted out of range.
Throws a NotSupportedException if the insertion is invalid
Usage:
 Sequence.Insert(0,Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.UserStep())
AMSupportRemovalSequence.Contains(item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) System.Boolean
Returns true if the step exists in the sequencer. If not, returns false
Usage:
    index1 = removalSequence.Contains(Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.BaseRemoval());
    index2 = removalSequence.Contains(Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.SupportRemoval(supportObj));