AnyLogic 9
Expand
Font size

Drawing

When you add shapes to the model layout, you typically drag them directly from the toolbar into the graphical editor. This way, the shape appears in its predefined form, which can then be modified to suit your needs.

For some shapes, such as walls, this is not so convenient. The drawing mode allows you to fine-tune shapes and lines as you edit them. Currently, this feature is available for walls and paths, bulk conveyor belts, and pipes.

To draw a shape

  1. Click the element on the corresponding palette below the  Project view button.
    • Polyline is in the Presentation palette
    • Wall is in the Pedestrian Library
    • Path is in the Process Modeling Library
    • Pipe and Bulk conveyor belt are in the Fluid Library
  2. Click once to start drawing the shape.
  3. Next, click anywhere else to stretch the shape to that point.
    Press Alt (macOS: Option) to draw a curved segment instead of a straight line.
  4. To stop drawing, do one of the following:
    • Double-click when adding the end point of the shape
    • Press Esc

To edit a shape

  1. To edit a shape that supports the drawing mode, double-click it in the editor. On the angles and terminal points of the shape, handle points will appear.
    • To realign the shape, drag a point anywhere in the editor. The lines leading to the point will be repositioned relatively to it.
    • To add a point, double-click anywhere on any segment of the shape.
    • To adjust the radius of a curve, drag the point at the center of the curve.
    • To remove a segment, double-click one of its points. When you remove a segment from the center of a shape, the two closest points will become connected.
  2. The context menu also provides several editing options. To access the context menu, right-click the shape in the editor:
    • Copy — Copy the shape to the clipboard.
      Press Ctrl+C while the shape is selected to copy the shape without opening the context menu.
    • Paste — Paste the shape from the clipboard into the editor.
      Press Ctrl+V while the editor is active to paste the shape without opening the context menu.
    • Delete — Delete the shape.
      Press Delete while the shape is selected to delete the shape without opening the context menu.
    • Add point (visible if you have opened the context menu from the position on the line) — Adds a point.
      Double-click the position on the line to add a point without opening the context menu.
    • Point (visible if you have opened the context menu from one of the handle points) — Expands the list of additional options:
      • Smooth point — Makes this point a smooth (curved) angle.
        This feature is not yet available in AnyLogic 9.
      • Corner point — Makes this point a sharp angle.
        This feature is not yet available in AnyLogic 9.
      • Delete point — Deletes the point.
        Double-click the point to delete it without opening the context menu.
    • Show/Hide guiding lines — Toggles the visibility of guiding lines on the shape.
      Click the guiding line’s terminal point (the square), then drag it to adjust the curve.
      • On arc segments, guiding lines appear on the terminal points of the segment.
      • On line segments, guiding lines appear over the segment itself.
      See the image for reference:

      AnyLogic 9: Guiding linesThe handle points of the arc segment (1) and line segment (2) guiding lines

      This option is not visible for polylines and pipes.
    • Make segment linear/arc — Activates the mode that allows you to convert line segments to arcs and vice versa.
      Enable the mode, then click the segment to toggle its state.
      To disable the mode, press Esc or click anywhere else in the graphical editor.
      This option is not visible for polylines and pipes.
    • Append — Click to continue drawing the shape.
      After you click the option, the terminal points of the shape will become clickable. Click the terminal point and proceed with drawing as usual.
    • Split — Click to activate the shape split mode.
      After clicking the option, the points connecting the segments will become visible. Click one of these points to split the shape in two at that point.
    • Change direction — Click to change the direction of unidirectional elements (such as pipes).
      For bidirectional elements, it affects which terminal point is considered the starting point. The starting point is the one specified by the X, Y, and Z coordinate values in the Position section of the element’s properties.
      Press Shift+Enter while the shape is selected to change its direction without opening the context menu.
    • Close/Open polyline (visible for polylines) — Click to automatically connect the terminal points of the polyline.
    • Close/Open wall (visible for walls) — Click to automatically connect the terminal points of the wall and enclose the space inside the wall (so agents cannot move through it).
    • Select network — Select the entire network (all paths and nodes belonging to this network).
      This option is visible only for paths and nodes.
How can we improve this article?