Repository.Action.GetFMEAActionLocatorLinkPath

From ReliaWiki
Revision as of 23:53, 13 March 2019 by David J. Groebel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.Repository


Creates a locator link file for the action and returns the path.

Syntax

.Action.GetFMEAActionLocatorLinkPath(actionID, [causeID]) As String

Parameters

actionID

Required. The ID of the action.

causeID

Optional. The ID of the cause that the action belongs to. Set to 0 to use the first cause where the action is used.

Example

VBA

 'Declare a new Repository object and connect to a Synthesis repository. 
  Dim MyRepository As New Repository
  MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10")
 
 'Get action #1 from project #1. 
  Dim MyAction As cAction
  MyRepository.Project.SetCurrentProject(1)
  Set MyAction = MyRepository.Action.GetAction(1)
 'Get string which contains the path to the action 
  Dim sPath As String
  sPath = MyAction.GetFMEAActionLocatorLinkPath