Repository.Action.GetFMEAActionLocatorLinkPath: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 2: Line 2:




<onlyinclude>Creates a locator link file for the action and returns the path to the file.</onlyinclude>   
<onlyinclude>Creates a locator link file for the action and returns the path.</onlyinclude>   


== Syntax ==
== Syntax ==

Latest revision as of 23:53, 13 March 2019

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