AMSupportRemovalSequence#

class ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.AMSupportRemovalSequence(sequenceObj: Ansys.Common.Interop.DSObjectsAuto.IDSAMProcessSequence)#

Bases: object

Overview#

Add

Adds a support or base removal step.

Clear

Clear method.

Contains

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

CopyTo

CopyTo method.

Equals

Equals method.

Find

Find method.

GetEnumerator

GetEnumerator method.

GetHashCode

GetHashCode method.

GetType

GetType method.

IndexOf

Returns index of removal object

Insert

Inserts a given step at particular index(zero based)

Remove

Remove a support or base removal step.

RemoveAt

Remove AM step at index.

Swap

Swaps two steps in the Removal sequence.

ToString

ToString method.

Count

Count property.

IsReadOnly

IsReadOnly property.

Item

Item property.

Property detail#

property AMSupportRemovalSequence.Count: int | None#

Count property.

property AMSupportRemovalSequence.IsReadOnly: bool | None#

IsReadOnly property.

property AMSupportRemovalSequence.Item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep | None#

Item property.

Method detail#

AMSupportRemovalSequence.Add(item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) None#
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.Clear() None#

Clear method.

AMSupportRemovalSequence.Contains(item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) bool#
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));
AMSupportRemovalSequence.CopyTo(array: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep, index: int) None#

CopyTo method.

AMSupportRemovalSequence.Equals(obj: Any) bool#

Equals method.

AMSupportRemovalSequence.Find(item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) int#

Find method.

AMSupportRemovalSequence.GetEnumerator() Iterator[Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep]#

GetEnumerator method.

AMSupportRemovalSequence.GetHashCode() int#

GetHashCode method.

AMSupportRemovalSequence.GetType() type#

GetType method.

AMSupportRemovalSequence.IndexOf(item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) int#
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: int, item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) None#
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.Remove(item: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.IAMProcessStep) bool#
Remove a support or base removal step.
Returns true if the step was removed
Returns false if the step could not be removed because it did not exist
Usage:
C#:
    removalSequence.Remove(new Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.BaseRemoval());
    removalSequence.Remove(new Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.SupportRemoval(supportObj));
    removalSequence.Remove(removalSequence[2]));
Python:
    removalSequence.Remove(Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.BaseRemoval());
    removalSequence.Remove(Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.SupportRemoval(supportObj));
    removalSequence.Remove(removalSequence[2]))
AMSupportRemovalSequence.RemoveAt(index: int) None#
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) bool#
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.ToString() str#

ToString method.