Repository.Xfmea.GetItemInSystemHierarchy Method: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) mNo edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<onlyinclude>Returns an '''[[XfmeaItem Class|XfmeaItem]]''' object | <onlyinclude>Returns an '''[[XfmeaItem Class|XfmeaItem]]''' object that represents a given system hierarchy item in the current project.</onlyinclude> | ||
== Syntax == | == Syntax == |
Latest revision as of 18:43, 9 June 2016
Member of: SynthesisAPI.Repository
Returns an XfmeaItem object that represents a given system hierarchy item in the current project.
Syntax
.Xfmea.GetItemInSystemHierarchy(HID)
Parameters
HID
- Required. Integer. The record ID number of the system hierarchy item to retrieve.
Example
This example assumes that a system hierarchy item with ID#1 exists in the first available project of a repository.
VBA 'Declare a new Repository object and connect to a Synthesis repository. Dim MyRepository As New Repository MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10") 'Get system hierarchy item #1 from project #1. Dim Item As XfmeaItem MyRepository.Project.SetCurrentProject (1) Set Item = MyRepository.Xfmea.GetItemInSystemHierarchy(1) 'Output sample: Display the name of the item. MsgBox (Item.Nm)
VB.NET 'Declare a new Repository object and connect to a Synthesis repository. Dim MyRepository As New Repository MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10") 'Get system hierarchy item #1 from project #1. Dim Item As XfmeaItem MyRepository.Project.SetCurrentProject (1) Item = MyRepository.Xfmea.GetItemInSystemHierarchy(1) 'Output sample: Display the name of the item. MsgBox (Item.Nm)