Repository.Xfmea.AddXfmeaEffect Method

Adds a new effect to a failure. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Xfmea.AddXfmeaEffect(Effect, FailureID)

Parameters
Effect
 * Required. The XfmeaEffect object to be added.

FailureID
 * Required. Integer. The record ID of the failure to add the effect to.

Example
This example assumes that FMEAs exist in a repository. It creates a new effect, and then saves it to one of the failures in the repository. VBA MyRepository Repository AEffect XfmeaEffect AEffect.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaEffect(AEffect,1)

VB.NET MyRepository Repository AEffect XfmeaEffect AEffect.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaEffect(AEffect,1)