Repository.BlockSim.ImportBlockSimXMLFile: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
Parameters
Parameters
:''XMLFile'': The path for the XML file to import.
:''XMLFile'': The path for the XML file to import.
{{Template:BooleanReturn.Cmt}}


== Usage Example ==
== Usage Example ==

Revision as of 16:45, 22 May 2015


Synthesis API allows the programmer to import XML files into a current project of BlockSim. The page contains the logic of that importation. The files must XML format supported by BlockSim so they can be successfully imported.

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")