Repository.Xfmea.GetXfmeaCauseActionsDictionary Method: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<onlyinclude>Returns a dictionary object containing all actions (cAction) currently assigned to a certain cause in the current project. The dictionary syntax is '''Dictionary(Of Integer, cAction)''', where the ID numbers are the keys and the '''[[CAction Class|cAction]]''' objects that represent the action resources are the associated values | <onlyinclude>Returns a dictionary object containing all actions (cAction) currently assigned to a certain cause in the current project. The dictionary syntax is '''Dictionary(Of Integer, cAction)''', where the ID numbers are the keys and the '''[[CAction Class|cAction]]''' objects that represent the action resources are the associated values. (.NET only)</onlyinclude> | ||
== Syntax == | == Syntax == |
Latest revision as of 17:22, 5 March 2018
Member of: SynthesisAPI.Repository
Returns a dictionary object containing all actions (cAction) currently assigned to a certain cause in the current project. The dictionary syntax is Dictionary(Of Integer, cAction), where the ID numbers are the keys and the cAction objects that represent the action resources are the associated values. (.NET only)
Syntax
.Xfmea.GetXfmeaCauseActionsDictionary(CauseID)
Parameters
Cause ID
- Required. The Cause ID used to obtain all associated actions.
Example
VB.NET 'Declare a new Repository object and connect to a repository. Dim MyRepository As New Repository MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr18") 'Get a list of causes for failure #1 from project #1. Dim Causes() As cCause Set Causes = MyRepository.Xfmea.GetAllXfmeaCauses(1) 'Obtain all actions associated with the first item in the Causes array. Dim ActionsDict() As cAction ActionsDict = MyRepository.Xfmea.GetXfmeaCauseActionsDictionary(Causes(0))