Font size

Adding library blocks into a model

All libraries loaded into AnyLogic workspace are displayed as stencils of the Palette view. Each library block is represented with the icon designed for it. You add library blocks into agent types of your model in the same way as any other palette elements.

To add a library block into a model

  1. Open the diagram of the agent type (e.g. Main), where you want to add the library block.
  2. Open the stencil of the required library in the Palette.
  3. Drag the required block from the palette to the graphical editor.

If for some reason you do not see the library stencil in the Palette, it means that this library is probably not loaded into AnyLogic workspace or hidden. Please refer to Managing libraries topic to know how to load libraries into the workspace and make them visible in the Palette.

Having added some library block into your model, this library is automatically added to the list of libraries needed by this model to compile successfully. You can manage model dependencies by yourself on the Dependencies page of the model's properties view. Besides of libraries, you can also specify there jar files and class folders needed by this model.

How can we improve this article?