Import/Export ==================== Robin allows to import and export FTAs in an easy-way. It allows moving a FT between systems of the same project and even between different projects. The import/export can be performed with two different formats: **.ROB** (format file native of Robin) and **.XML** (Compatible with PTC Windchill). Import -------------- From the FTA home page, select the option ``Import`` to be redirected to the import page. .. image:: img/import/imp.PNG :width: 696.47pt In the first dropdown, select the import format: **ROB format (native Robin format)**, **XML format (PTC Windchill or Isograph)**, **CAFTA (.mdb/.rr & .fre)**, and **TXT format**. .. image:: img/import/imp2.PNG :width: 696.47pt In the second dropdown, select the system where the FTs will be imported. .. image:: img/import/imp3.PNG :width: 696.47pt Click on ``Choose a File`` to load the file with the FTs. After loading the file, the button ``Check Import`` will appear. .. image:: img/import/imp4.PNG :width: 696.47pt Click on ``Check import``. Robin will read the nodes and it will check if there are nodes with the same ID in the project. - If there are no nodes with the same ID in the project, the following message will appear. .. image:: img/import/imp7.PNG :width: 696.47pt - If there are nodes with the same ID in the project, a table with all the existing nodes will appear. .. image:: img/import/imp5.PNG :width: 696.47pt For each node, the user has the option of getting the data from the database or from the file. If, for one node, the user chooses the file source, the ID will be highlighted in red to indicate that the ID has to be modified. Then, if the ID is correct (not repeated), it will be highlighted in green. `Double-click` to change the ID and `Enter` to confirm the change. .. image:: img/import/imp6.PNG :width: 696.47pt .. note:: When selecting the file source for a given node, all its children will be enabled. It will be disabled otherwise and the source will be the database. Click on ``Import to Database`` to import the FTs into the system. .. image:: img/import/imp7.PNG :width: 696.47pt Export --------------- To export a FT, enter in the FTA Diagram. .. image:: img/import/exp.PNG :width: 696.47pt Click on the export icon in the top-right side of the screen. .. image:: img/import/exp2.PNG :width: 696.47pt Select the format to export the FT: Robin format (.ROB) and Windchill format (.XML) .. image:: img/import/exp3.PNG :width: 696.47pt - **Robin format (.ROB)** This format gives to the user the option to export the current FT or all the FTs of the system. .. image:: img/import/exp4.PNG :width: 696.47pt - **PTC Windchill format (.XML)** This format gives to the user the following options in order to create the file with the same configuration of PTC Windchill. .. image:: img/import/exp5.PNG :width: 696.47pt Click on the ``Export`` button. The file will be downloaded automatically. Exporting XML File from Isograph --------------------------------- +------+---------------------------------------------------------------------------------------------------+--------------------------------+ | Step | Description | Expected Result | +======+===================================================================================================+================================+ | 1 | On the isograph main page, click on "File" in the navigation bar | .. image:: img/import/iso1.png | | | | :width: 300pt | +------+---------------------------------------------------------------------------------------------------+--------------------------------+ | 2 | In the dropdown menu, click on "Export". | .. image:: img/import/iso2.png | | | | :width: 300pt | +------+---------------------------------------------------------------------------------------------------+--------------------------------+ | 3 | In the export window, in the "Database" tab: | .. image:: img/import/iso3.png | | | - Set the type of file to "XML file". | :width: 300pt | | | - Click on "Browser" and select the folder and the name of the file to be saved. | | +------+---------------------------------------------------------------------------------------------------+--------------------------------+ | 4 | In the "Tables" tab, select the following tables to be exported: | .. image:: img/import/iso4.png | | | | :width: 300pt | | | - Failure Models | | | | - Gates | | | | - GateInputs | | | | - PrimaryEvents | | | | | | | | Click on the ">" to add the tables | | +------+---------------------------------------------------------------------------------------------------+--------------------------------+ | 5 | In the "Columns" tab, select each table in the dropdown and add all the columns by clicking ">>>" | .. image:: img/import/iso5.png | | | | :width: 300pt | | | (All columns must be on the right side) | | +------+---------------------------------------------------------------------------------------------------+--------------------------------+ | 6 | The export settings can be saved by clicking "Save" or "Save As..." | .. image:: img/import/iso6.png | | | | :width: 300pt | +------+---------------------------------------------------------------------------------------------------+--------------------------------+ | 7 | Click "Export" to export the FTA in an XML file | .. image:: img/import/iso7.png | | | | :width: 300pt | +------+---------------------------------------------------------------------------------------------------+--------------------------------+ Export XML File from PTC Windchill ------------------------------------ +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | Step | Description | Expected Result | +======+==========================================================================================================================================================================================================================================================================+================================+ | 1 | Open the FTA model of PTC Windchill | - | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 2 | Select the FT to import | - | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 3 | Click on "Tools" -> "Export Wizard". | .. image:: img/import/wnd1.png | | | | :width: 300pt | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 4 | Select "Perform a custom export" or "Load an existing template" if a saved export template is available. Click on "Next". | .. image:: img/import/wnd2.png | | | | :width: 300pt | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 5 | Click "Next". | .. image:: img/import/wnd3.png | | | | :width: 300pt | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 6 | Click "Next". | .. image:: img/import/wnd4.png | | | | :width: 300pt | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 7 | Select "Export the currently selected fault tree" to import the selected fault tree. If only a specific gate has to be exported, select "Export the currently selected gate or event with children". If all the FTs have to be exported select "Export all fault trees". | .. image:: img/import/wnd5.png | | | | :width: 300pt | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 8 | Select the fields that have to be exported. The minimum fields required are: | .. image:: img/import/wnd6.png | | | - Identifier | :width: 300pt | | | - Gate/Event Type | | | | - Description | | | | - Logical Condition | | | | - Model | | | | - Failure Rate Type | | | | - Exposure Time Percentage | | | | - Dormancy factor | | | | - Failure Rate Percentage | | | | - Input Value | | | | - Input Value2 | | | | - Parent | | | | - Transfer | | | | - Unavailability | | | | - Failure Rate | | | | - Repeated Event | | | | - Number of Repeats | | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 9 | Click "Next", select the file type "XML", and type the name of the file | .. image:: img/import/wnd7.png | | | | :width: 300pt | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 10 | Click "Next". | - | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 11 | Select the precision of the values, ar least a precision of 9. | .. image:: img/import/wnd8.png | | | | :width: 300pt | | | (It is important to establish high precision values to avoid losing any information during the export) | | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 12 | Click "Next". Save the export options in a template to be used in future exports. | - | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+ | 13 | Click "Finish". | - | +------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+