AnyLogic
Expand
Font size

Projects view

The Projects view provides access to AnyLogic projects currently opened in the workspace. The workspace tree provides easy navigation throughout the models. As models are organized hierarchically, they are displayed in a tree structure: the model itself forms the top level, agent types, experiments, model’s database and file resources are the next level items, elements that make up agent structure are organized in branches one level down, etc.

By default the Projects view is docked to the left part of AnyLogic window.

The Projects view

To show or hide the Projects view

  1. Choose View > Projects from the main menu.

The Projects view shares the same area within the application window with the Palette view. If Palette or some other view (e.g. Search) is shown there, just click the Projects view tab to bring it on top.

Working with Projects view

There are some common operations you can perform with items in the Projects view. You can copy, move, and delete tree items. Thus, you can easily manage your projects. When copying or deleting, you should select the item.

To select the item

  1. Click on the item.
    If opened, the Properties view will display the properties of the selection.

To delete the item

  1. Choose Edit >  Delete from the main menu, or
    Right-click (macOS: Ctrl + click) the item and choose Delete from the popup menu, or
    Press Del.

To copy the item

  1. Choose Edit >  Copy from the main menu, or
    Right-click (macOS: Ctrl + click) the item and choose Copy from the popup menu, or
    Press Ctrl + C (macOS: Cmd + C).

To cut the item

  1. Choose Edit >  Cut from the main menu, or
    Right-click (macOS: Ctrl + click) the item and choose Cut from the popup menu, or
    Press Ctrl + X (macOS: Cmd + X).

To paste the item

  1. Select the parent item you want to paste into.
    For example, you can paste a rectangle in some agent type.
  2. Choose Edit >  Paste from the main menu, or
    Right-click (macOS: Ctrl + click) the parent item and choose Paste from the popup menu, or
    Press Ctrl + V (macOS: Cmd + V).

All model elements are present in the workspace tree and all changes you make when developing your model are immediately reflected there. When a new model is opened, new model item is added to the workspace tree. By default, it contains only one agent class and one simulation experiment. As you develop your model and add new model elements, they are added to the corresponding branches of the tree.

Expand and collapse tree branches by clicking the plus and minus icons.

To collapse all opened branches of the tree of models opened in the Projects view

  1. Right-click (macOS: Ctrl + click) any tree element and choose Collapse All from the context menu.

You may notice that one item of the tree (it can be agent class, experiment, Java class, Java interface, or a library) may be emphasized with bold in the Projects view. It means that this particular element of the model is displayed in the editor at the present time. This feature may be very helpful, e.g., in case you have several models opened, so that there are several Main agent types in the workspace and you are not sure, which particular Main type is opened in the graphical editor at the moment:

How can we improve this article?