Repository.Xfmea.GetAllXfmeaFunctions Method: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<onlyinclude>Gets a list of | <onlyinclude>Gets a list of FMEA functions associated with a system hierarchy item. Returns an '''[[XfmeaFunction Class|XfmeaFunction]]''' object array that contains all the FMEA functions in that item.</onlyinclude> | ||
== Syntax == | == Syntax == |
Revision as of 22:39, 24 August 2015
Member of: SynthesisAPI10.Repository
Gets a list of FMEA functions associated with a system hierarchy item. Returns an XfmeaFunction object array that contains all the FMEA functions in that item.
Syntax
.Xfmea.GetAllXfmeaFunctions(HID, IncludeLinkedAnalyses)
Parameters
HID
- Required. Integer. The Hierarchy ID or 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 'Add code to connect to a Synthesis repository. Dim MyRepository As New Repository ... 'Get a list of all FMEA functions associated with system hierarchy item #1 in project #1. Dim ListofFunctions() As XfmeaFunction MyRepository.Project.SetCurrentProject (1) ListofFunctions = MyRepository.Xfmea.GetAllXfmeaFunctions(1,True) 'Output sample: Display the number of elements in the array. Dim NumberofElements As Integer NumberofElements = UBound(ListofFunctions) - LBound(ListofFunctions) + 1 MsgBox (NumberofElements)