Repository.BlockSim.ImportBlockSimXMLFile: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIClass|Repository Class|Repository}}


== Property Syntax  ==
== Method Syntax  ==
{{APIName|ImportBlockSimXMLFile(}}
{{APIName|ImportBlockSimXMLFile(}}
{{APIPrefix|ByVal}}
{{APIPrefix|ByVal}}
Line 9: Line 9:
{{APIPrefix|As As Boolean}}<br>
{{APIPrefix|As As Boolean}}<br>
{{APIComment|Imports from XML file to the current project.}}
{{APIComment|Imports from XML file to the current project.}}
== Parameters ==
'''XMLFile'''
{{APIComment|The path for the XML file to import.}}
== Usage Example ==
{{APIComment|Declare a new repository connection class.}}
        Private WithEvents MyRepository As New Repository
{{APIComment|Connect to the Synthesis repository.}}
        Dim Success As Boolean = False
        Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
{{APIComment|Import the XML File to the Synthesis repository.}}
        Dim SuccessImportXML As Boolean
        SuccessImportXML = MyRepository.ImportBlockSimXMLFile("XMLFilePath")

Revision as of 22:04, 19 September 2013



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.ConnectToRepository("RepositoryFileNamePath")

Import the XML File to the Synthesis repository.

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