Repository.Xfmea.GetXfmeaCauseControls Method

From ReliaWiki
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.Repository


Returns an array of cXfmeaControl objects that represent the associated controls for the specified Cause ID in the current project.

Syntax

.Xfmea.GetXfmeaCauseControls(CauseID)

Parameters

Cause ID

Required. The Cause ID used to obtain all associated controls.

Example

VBA|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 controls associated with the first item in the Causes array. For VB.NET, the dictionary method could also be used. 
  Dim Controls() As cXfmeaControl
  Controls = MyRepository.Xfmea.GetXfmeaCauseControls(Causes(0))