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 parent FMEA effect.

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

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 MyRepository.ConnectToAccessRepository ACause XfmeaCause ACause.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaCause(ACause, 2, 1)

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