Repository.BlockSim.ImportBlockSimXMLFile: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
Imports from XML file
Imports from XML file
== Method Syntax  ==
== Method Syntax  ==
{{APIName|'''ImportBlockSimXMLFile'''(}}
{{APIName|Public Function '''ImportBlockSimXMLFile'''(}}
{{APIPrefix|ByVal}}
{{APIPrefix|ByVal}}
{{APIName|XMLFile}}
{{APIName|XMLFile}}
Line 15: Line 15:


== Usage Example ==
== Usage Example ==
{{APIComment|Declare a new repository connection class.}}
{{APIComment:Code Block}}
        Private WithEvents MyRepository As New Repository
'{{APIComment|Declare a new repository connection class.}}
{{APIPrefix|Private WithEvents MyRepository As New Repository}}


{{APIComment|Connect to the Synthesis repository.}}
{{APIComment|Connect to the Synthesis repository.}}

Revision as of 15:45, 18 October 2013


Imports from XML file

Method Syntax

Public Function 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

Template:APIComment:Code Block

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