Imports data from an XML file into the current BlockSim project. Returns a Boolean value; when true, indicates a successful import.
Remarks: The XML file can include the block properties and information on how the blocks are connected in a reliability block diagram or fault tree diagram. Data on visual aspects, such as diagram style settings, block style settings, etc., are not supported.
- Required. String. The complete path to the XML file to be imported.
This example assumes that an XML file called "BlockSimData.xml" exists in the C: drive. The code ignores the return value.
VBA|VB.NET 'Declare a new Repository object and connect to a Synthesis repository. Dim MyRepository As New Repository MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10") 'Import the data from the XML file into project #1 in the repository. MyRepository.Project.SetCurrentProject(1) MyRepository.BlockSim.ImportBlockSimXMLFile("C:\BlockSimData.xml")