The Main diagram and other diagrams (sub-diagrams)

 

Note: this page is outdated. Please read the latest article ER diagrams & sub-diagrams

 

Diagrams

Main diagram:

  • Contains all database objects (all schema objects)
  • Objects can be displayed or hidden

Main ER Diagram

Diagram (sub-diagram):

  • Contains a subset of objects of the Main diagram
  • Objects can be added to a diagram or removed from the diagram, but cannot be hidden

Sub diagram in Luna Modeler

Adding a new diagram

You can click the button Add diagram (1) to create a new, empty diagram. This can be useful if you plan to create a new part of your database design from scratch. If you wish to add already existing objects to a new or existing diagram, select the objects and right-click any of them either in the side panel (2) or on the active diagram (3), and select Add to another diagram (4).

Setting the diagram name and properties

If you wish to rename the diagram or set other graphical properties, either right-click the tab name and click Edit to open the modal form or edit the properties directly in the side panel.

Displaying items from the Main diagram

At bottom of the left side panel, you can find switch Show items from the Main diagram.

Enable the switch (1) to display items that exist in the project & the main diagram, but are not in the active diagram. 

The items are displayed as disabled (2). You can right-click any of them and select Add to diagram (3).

Diagram items management

If you wish to see a list of all objects, search in the list and add or remove additional objects, right-click the diagram area, and select Manage diagram items.

The Diagram items modal form opens. See the objects included (checkbox checked, see 1) and objects that are available for addition. You can also filter the grid by specifying the object name in the Filter input field (2).

Removing objects

If you want to remove an object, you can use the Diagram items modal form, or select the object and press the Del key or click the Delete icon on the toolbar.

Then you can choose to either remove the object from the diagram or delete it from the project.

Changing where tabs are displayed in Moon Modeler

In the Settings, you can select if you want to display the tabs above the diagram or below the diagram.

Diagram specific features

  • Diagram specific colors/background colors
  • Objects in each diagram can be formatted differently (color, position, size etc.)
  • Objects alignment and resize
  • Print to PDF

#

Copyright: 2024 Ideamerit s.r.o. All rights reserved. Legal