Repository.Xfmea.AddXfmeaFailure Method

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

Syntax
.Xfmea.AddXfmeaFailure(failure, FunctionID)

Parameters
failure
 * Required. The XfmeaFailure object to be added.

FunctionID
 * Required. Integer. The record ID of FMEA function to add the failure to.

Example
This example assumes that FMEAs exist in a repository. It creates a new failure, and then saves it to one of the FMEA functions in the repository. VBA MyRepository Repository AFailure XfmeaFailure AFailure.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaFailure(AFailure,1)

VB.NET MyRepository Repository AFailure XfmeaFailure AFailure.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaFailure(AFailure,1)