Repository.XFRACAS.GetAllXFRACASEntities

From ReliaWiki
Revision as of 16:52, 18 August 2015 by Kate Racaza (talk | contribs)
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI10.Repository


Gets a list of all XFRACAS entity names connected to the current repository. Returns a NameIDPair object array that contains the entity names and ID numbers.

Syntax

.XFRACAS.GetAllXfracasEntities()


Example

VBA|VB.NET

 'Add code to connect to a Synthesis repository. 
  Dim MyRepository As New Repository
  ... 

 
 'Get a list of all XFRACAS entities in the repository.  
 Dim ListofEntities() As NameIDPair
 ListOfEntities = MyRepository.XFRACAS.GetAllXfracasEntities()

 'Output sample: Display the name and ID of the first available entity. 
 Dim EntityName As String
 Dim EntityID As Integer
 EntityName = ListofEntities(0).Name
 EntityID = ListofEntities(0).ID
 MsgBox (EntityName & ", " & EntityID)