Repository.Xfmea.GetItemInSystemHierarchy Method: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) (Created page with '{{Template:API}}{{Template:APIBreadcrumb|10|.Repository}} <onlyinclude>Gets the system hierarchy item with the designated ID number and returns it as a '''…') |
Kate Racaza (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
<onlyinclude>Gets the system hierarchy item with the designated ID number and returns it as | <onlyinclude>Gets the system hierarchy item with the designated ID number and returns it as an '''[[XfmeaItem Class|XfmeaItem]]''' object.</onlyinclude> | ||
== Syntax == | == Syntax == |
Revision as of 23:48, 12 January 2016
Member of: SynthesisAPI10.Repository
Gets the system hierarchy item with the designated ID number and returns it as an XfmeaItem object.
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 'Add code to connect to a Synthesis repository. Dim MyRepository As New Repository ... '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 'Add code to connect to a Synthesis repository. Dim MyRepository As New Repository ... '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)