This is an old revision of the document!
The module library is an integrated “database” for sub-system modules. Any sub-system can be added to the library, so that it can be re-used later on in other projects.
Modules are organized in the library in a normal file structure with folders and files.
To manage the library, select go to File → Library → Manage library.
The Manage library window lets user specify folder which contains Ecolego projects (with sub-systems) and navigate the library hierarchy, create, rename or delete folders. It also lets you import or export the library files *.ecl. Once a module is selected, information about it will be displayed in the fields to the right. With Manage library window user can change project or module information, change names, descriptions and images.
After creating number of sub-systems in a Ecolego project (*.eco), or several projects with sub-systems there might be a need to pack them in a library *.ecl file, and send to other users, or save them for later use. To create a library file, user has to:
This file can be later imported as a library with the same “Manage library” window, with the button named Import. Please pay attention if you will try to import same projects to the same folder they were extracted from, you will get error because of same names conflict.
From the Projects window:
From the Model window:
Select sub-system module which need to be inserted in the project. Then click Ok to add it. Please note that this “Library” window is similar to the “Manage Library Window” but doesn't allow user to change names, descriptions and images.
Caution! When adding a module from the library to a project that already contains modules, Ecolego will search for input/output names in the new module that matches the input/output names of the existing modules. If matches are found, the user will be prompted if he wants to automatically connect these. This is only recommended for users that are familiar with the library modules - mistakes are easily made unless the module library is carefully constructed.
From the Projects window:
From the Model window:
Note that the sub-system must be “collapsed”.
There is possibility to replace one sub-system module with other one from the library. To replace sub-system module, user has to:
Libraries are used to build models. Changes can later occur to either the models (where the user might want to go back to the initial values from the library), or a change can occur to the source library (in which case, the user might want to update the models with the new library values). Either way, the model should be synchronized with the source library. To do this action: