Repository.BlockSim.ImportBlockSimXMLFile: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "Repository.ImportBlockSimXMLFile" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
No edit summary
Line 8: Line 8:
{{APIName|)}}
{{APIName|)}}
{{APIPrefix|As Boolean}}<br>
{{APIPrefix|As Boolean}}<br>
{{APIComment|Imports from XML file to the current project.}}
{{APIComment|Imports from an XML file to the current project.}}


== Parameters ==
== Parameters ==

Revision as of 16:37, 17 January 2014


Imports from XML file

Method Syntax

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

Parameters

XMLFile The path for the XML file to import.

Usage Example

Code Block

' Declare a new repository connection class. 
Private WithEvents MyRepository As New Repository
' Connect to the Synthesis repository. 
DimSuccessAs Boolean=False
 Success = MyRepository.ConnectToSQLRepository("SQLServerPath", "SQLDatabaseName")
' Import the XML File to the Synthesis repository. 
DimSuccessImportXMLAs Boolean
 SuccessImportXML = MyRepository.ImportXFRACASXMLFile("XMLFilePath")

Reformatted 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.ImportXFRACASXMLFile("XMLFilePath")