Repository.Xfmea.GetAllXfmeaFunctions Method

Returns an array of XfmeaFunction objects that represent the FMEA functions associated with a system hierarchy item.

Syntax
.Xfmea.GetAllXfmeaFunctions(HID, IncludeLinkedAnalyses)

Parameters
HID
 * Required. Integer. The record ID of the system hierarchy item.

IncludeLinkedAnalyses
 * Required. Boolean. Indicates whether to include linked FMEAs in the array.

Example
This example assumes that system hierarchy items with FMEA functions exist in the first available project of a repository.

VBA|VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository ListofFunctions XfmeaFunction MyRepository.Project.SetCurrentProject (1) ListofFunctions = MyRepository.Xfmea.GetAllXfmeaFunctions(1,) NumberofElements Integer NumberofElements = UBound(ListofFunctions) - LBound(ListofFunctions) + 1 MsgBox (NumberofElements)