How to share your configuration with others

A how-to is an informal, often short, description of how to accomplish some specific task (Wikipedia)
Post Reply
User avatar
Marty
Posts: 2152
Joined: 22 Dec 2010, 16:39

How to share your configuration with others

Post by Marty » 04 Mar 2011, 08:18

Here's a quick guide on how to share your configuration with other.
Prosim contains a configuration import option that allows you to merge a set of configurations into your current configuration.
If you want to distribute part of your configuration, you can build an export file that people can use directly. To do this, follow these steps:
  • Make a copy of your current config.xml file. This new file will be your export xml file.
  • Open the export file in a normal text editor.
  • Remove ALL lines, EXCEPT the <mapping> elements you want to export.
  • You should now have a sequential list of all element you want to export. Here is an example:

    Code: Select all

        <mapping connection="Ampere Aux Battery">
          <iocp serial="0" port="1071" />
        </mapping>
        <mapping connection="Ampere DCBus1">
          <iocp serial="0" port="1073" />
        </mapping>
        <mapping connection="Ampere DCBus2">
          <iocp serial="0" port="1074" />
        </mapping>
        <mapping connection="Ampere GroundServicesBus">
          <iocp serial="0" port="1076" />
        </mapping>
        <mapping connection="Ampere Inverter">
          <iocp serial="0" port="1078" />
        </mapping>
        <mapping connection="Ampere MainBus1">
          <iocp serial="0" port="1079" />
        </mapping>
        <mapping connection="Ampere MainBus2">
          <iocp serial="0" port="1080" />
        </mapping>
        <mapping connection="Ampere SwitchedHotBattBus">
          <iocp serial="0" port="1082" />
        </mapping>
        <mapping connection="Ampere TR 1">
          <iocp serial="0" port="1083" />
        </mapping>
        <mapping connection="Ampere TR 2">
          <iocp serial="0" port="1084" />
        </mapping>
        <mapping connection="Ampere TR 3">
          <iocp serial="0" port="1085" />
        </mapping>
        <mapping connection="Ampere TransBus1">
          <iocp serial="0" port="1086" />
        </mapping>
        <mapping connection="Ampere TransBus2">
          <iocp serial="0" port="1087" />
        </mapping>
    
  • Enclose the list with the following XML element:

    Code: Select all

    <config>
       <container name="<type your configuration set name here>">
          <mappings>
             [Your mappings from the previous step]
          </mappings>
       <container>
    </config>
    
  • The resulting file is now ready to use. Here is what it will look like:

    Code: Select all

    <config>
       <container name="SIOC electricity configuration">
          <mappings>
            <mapping connection="Ampere Aux Battery">
               <iocp serial="0" port="1071" />
           </mapping>
           <mapping connection="Ampere DCBus1">
             <iocp serial="0" port="1073" />
           </mapping>
           <mapping connection="Ampere DCBus2">
             <iocp serial="0" port="1074" />
           </mapping>
           <mapping connection="Ampere GroundServicesBus">
             <iocp serial="0" port="1076" />
           </mapping>
           <mapping connection="Ampere Inverter">
             <iocp serial="0" port="1078" />
           </mapping>
           <mapping connection="Ampere MainBus1">
             <iocp serial="0" port="1079" />
           </mapping>
           <mapping connection="Ampere MainBus2">
             <iocp serial="0" port="1080" />
           </mapping>
           <mapping connection="Ampere SwitchedHotBattBus">
             <iocp serial="0" port="1082" />
           </mapping>
           <mapping connection="Ampere TR 1">
             <iocp serial="0" port="1083" />
           </mapping>
           <mapping connection="Ampere TR 2">
             <iocp serial="0" port="1084" />
           </mapping>
           <mapping connection="Ampere TR 3">
             <iocp serial="0" port="1085" />
           </mapping>
           <mapping connection="Ampere TransBus1">
             <iocp serial="0" port="1086" />
           </mapping>
           <mapping connection="Ampere TransBus2">
             <iocp serial="0" port="1087" />
           </mapping>
          </mappings>
       </container>
    </config>
    
  • You may include as many <container> elements as you wish in your file. Upon importing the file, a dialog box will be presented where containers can be selected for importing.
  • EMail, upload or host the resulting export file so people can use it with the import feature.

Post Reply

Return to “ProSim737 - How-tos”