This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
library [2021/12/02 11:19] mina [Creating a library file - .ecl] |
library [2022/01/24 13:02] dmytroh |
||
---|---|---|---|
Line 5: | Line 5: | ||
Modules are organized in the library in a normal file structure with folders and files. | Modules are organized in the library in a normal file structure with folders and files. | ||
- | ===== Creating a library file, .ecl ===== | + | ===== Creating a library file *.ecl* ===== |
- | After creating number of subsystems | + | After creating number of sub-systems |
- | - Open Ecolego | + | - Open Ecolego; |
- | - Go to File -> Library | + | - Go to File → Library |
- | - Mark the [[sub-system|sub-systems]] that should be in the library using ctrl or shirt keys on the keyboard | + | - Press **Select Library Folder** button and specify folder with [[project|projects]] that should be packed in the library *ecl file; |
- | - Click on **Export** | + | - Mark the the [[project|projects]] (that contains |
- | - Add the name to the library | + | - Click on **Export** |
+ | - Add the name to the library | ||
- | This file can be later imported as a library | + | This file can be later imported as a library |
===== Adding sub-systems to the library ===== | ===== Adding sub-systems to the library ===== | ||
Line 24: | Line 25: | ||
**From the Model window:** | **From the Model window:** | ||
- | * Right-click the [[Sub-system|sub-system]] in the matrix and select **Add to library** from the popup menu. Note that the [[Sub-system|sub-system]] must be “collapsed”. | + | * Right-click the [[Sub-system|sub-system]] in the matrix and select **Add to library** from the popup menu. |
+ | * Right-click the [[Sub-system|sub-system]] in the graph and select **Add to library** from the popup menu. | ||
+ | |||
+ | Note that the [[Sub-system|sub-system]] must be “collapsed”. | ||
==== The library window ==== | ==== The library window ==== | ||
Line 30: | Line 34: | ||
The library dialog lets you select a folder for the module and modify some information: | The library dialog lets you select a folder for the module and modify some information: | ||
- | * **Library** - Select a folder | + | * **Library** - Select a [[folder|folder]] with **Select library folder** button. List of modules |
- | * **Name** - Give a name for your module. If the name is the same as a module in the same folder, that module will be overwritten. | + | * **Name** - Give a name for your module. If the name is the same as a module in the same folder, that module will be overwritten; |
* **Image** - Click to select an image for the module. The image will be displayed in the library list. | * **Image** - Click to select an image for the module. The image will be displayed in the library list. | ||
* **Description** - Enter a description for the module. It is recommended that the description includes the following information: | * **Description** - Enter a description for the module. It is recommended that the description includes the following information: | ||
- | * Overview - A brief description of what the module is for | + | * Overview - A brief description of what the module is for; |
* Context - A comment on which cases, or in which context, the module is suitable for. For instance, details on what materials it supports. | * Context - A comment on which cases, or in which context, the module is suitable for. For instance, details on what materials it supports. | ||
- | |||
- | Click **Ok** to add the module. | ||
===== Retrieving sub-systems from the library ===== | ===== Retrieving sub-systems from the library ===== | ||
Line 43: | Line 45: | ||
**From the [[Projects_window|Projects window]]:** | **From the [[Projects_window|Projects window]]:** | ||
- | * Right-click the target [[Sub-system|sub-system]] | + | * Right-click the **Blocks** tab in the project tree and select |
**From the Model window:** | **From the Model window:** | ||
* Right-click an empty cell in the matrix and select **Get from library** from the pop-up menu. | * Right-click an empty cell in the matrix and select **Get from library** from the pop-up menu. | ||
+ | * Right-click an empty place in the graph and select **Get from library** from the pop-up menu. | ||
+ | |||
+ | Select sub-system module which need to be inserted in the project. Then click **Ok** to add it. | ||
==== The library window ==== | ==== The library window ==== | ||
Line 63: | Line 68: | ||
The library window lets you change module information and create, rename or delete folders. It also lets you import a library or export the library. | The library window lets you change module information and create, rename or delete folders. It also lets you import a library or export the library. | ||
- | * **New** - Create a new folder | + | * **New** - Create a new [[Folder|folder]], useful for importing projects to new folders; |
- | * **Delete** - Delete the currently selected folder | + | * **Delete** - Delete the currently selected folder |
- | * **Import…** - Import a new library folder from a file | + | * **Import…** - Import a new library folder from a *.ecl file; |
- | * **Export…** - Export the currently selected | + | * **Export…** - Export the currently selected |
- | * **Library** - Lists all folders and modules. Select a folder or module to edit it’s properties | + | * **Library** - Lists all folders and modules. Select a folder or module to edit it’s properties; |
- | * **Name** - Click to change the name of the currently selected folder or module | + | * **Name** - Click to change the name of the currently selected folder or module; |
- | * **Image** - Click to change the image of the currently selected module | + | * **Image** - Click to change the image of the currently selected module; |
- | * **Description** - Click to change the description of the currently selected module | + | * **Description** - Click to change the description of the currently selected module. |
===== See also ===== | ===== See also ===== |