Repository.Xfmea.AddXfmeaFunction Method

Add a new Xfmea function to a Synthesis repository. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Xfmea.AddXfmeaFunction(func, HID)

Parameters
func
 * Required. The XfmeaFunction object to be added.

HID
 * Required. Integer. The Hierarchy ID or record ID of the system hierarchy item to add the function to.

Example
This example assumes that system hierarchy items exist in a repository. It creates a new Xfmea function, and then saves it to one of the system hierarchy items in the repository. VBA MyRepository Repository Function1 XfmeaFunction Function1.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaFunction(Function1,1)

VB.NET MyRepository Repository Function1 XfmeaFunction Function1.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaFunction(Function1,1)