Repository.BlockSim.ImportBlockSimXMLFile: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
{{APIComment|Connect to the Synthesis repository.}}
{{APIComment|Connect to the Synthesis repository.}}
         Dim Success As Boolean = False
         Dim Success As Boolean = False
         Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
         Success = MyRepository.ConnectToSQLRepository("SQLServerPath", "SQLDatabaseName")


{{APIComment|Import the XML File to the Synthesis repository.}}
{{APIComment|Import the XML File to the Synthesis repository.}}
         Dim SuccessImportXML As Boolean
         Dim SuccessImportXML As Boolean
         SuccessImportXML = MyRepository.ImportBlockSimXMLFile("XMLFilePath")
         SuccessImportXML = MyRepository.ImportBlockSimXMLFile("XMLFilePath")

Revision as of 19:06, 17 October 2013


Imports from XML file

Method Syntax

ImportBlockSimXMLFile( ByVal XMLFile As String ) As As Boolean
Imports from XML file to the current project.

Parameters

XMLFile The path for the XML file to import.

Usage Example

Declare a new repository connection class.

       Private WithEvents MyRepository As New Repository

Connect to the Synthesis repository.

       Dim Success As Boolean = False
       Success = MyRepository.ConnectToSQLRepository("SQLServerPath", "SQLDatabaseName")

Import the XML File to the Synthesis repository.

       Dim SuccessImportXML As Boolean
       SuccessImportXML = MyRepository.ImportBlockSimXMLFile("XMLFilePath")