Repository.Xfmea.AddXfmeaCause Method

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

Syntax
.Xfmea.AddXfmeaCause(Cause, EffectID, FailureID)

Parameters
Cause
 * Required. The XfmeaCause object to be added.

EffectID
 * Required. Integer. The record ID of the effect to add the cause to.

FailureID
 * Required. Integer. The record ID of the parent failure item.

Example
This example assumes that FMEAs exist in a repository. It creates a new cause, and then saves it under one of the effects in the FMEA.

VBA MyRepository Repository ACause XfmeaCause ACause.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaCause(ACause, 2, 1)

VB.NET MyRepository Repository ACause XfmeaCause ACause.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaCause(ACause, 2, 1)