Repository.BlockSim.ImportBlockSimXMLFile: Difference between revisions
Jump to navigation
Jump to search
Alex Ulanov (talk | contribs) (→Syntax) |
Alex Ulanov (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template:APIClass|Repository Class|Repository}} | {{Template:APIClass|Repository Class|Repository}} | ||
Synthesis API allows the programmer to import XML | This Synthesis API allows the programmer to import XML file into a current project of BlockSim. The file must XML format supported by BlockSim. | ||
== Syntax == | == Syntax == |
Revision as of 16:46, 22 May 2015
This Synthesis API allows the programmer to import XML file into a current project of BlockSim. The file must XML format supported by BlockSim.
Syntax
- ImportBlockSimXMLFile( XMLFile As String ) As Boolean
Parameters
- XMLFile: The path for the XML file to import.
Returns True if successful, otherwise returns False.
Usage Example
' 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.BlockSim.ImportBlockSimXMLFile("XMLFilePath")