Worksheets like the Inheritance Graph or the Application Graph can be used to edit a part of the project. E.g., there could be two Inheritance Graph worksheets, each containing only a subset of the whole project. For example, you could model Pump meta classes on one worksheet and model Valve meta classes on another worksheet. Of course, you can also have a worksheet showing all the models at once, if you prefer it that way.
So, ==== Adding models to a project worksheet ==== Models can have multiple be selected and added to worksheets with overlapping content using Smart Studio's object pickers (i.ethe filterable, searchable and sortable list views to the left of the IDE), simply by dragging a model over to a worksheet and dropping it there.Alternatively, the [[Object Finder]] can be used to find and insert models into a worksheet. It is important to know that exist in multiple models can either originate from the connected {{UBIK}} Environment (database) or from the currently active project. We call that the "Source" of the model.Models from the project will always have a dashed border, whereas models from the {{UBIK}} Environment always have a solid border. You can remove models from the project (and all its worksheets)on the project page, or directly from a single worksheet. Changing In a worksheet , you can affect other worksheets after saving choose the change in order to keep consistency source (this happens automaticallyproject or environment)for a model. As a consequence, its details and dependencies will be updated and the model will be marked with the symbol for its source. ==== Saving Worksheets ==== Worksheets can be saved either to the connected {{UBIK}} Environment or to the currently active project. ===== '''Saving Worksheets to the Project''' ===== You can save a (selected) an active worksheet to the project using the confirm button (the icon is a hook/check symbol) in the tool bar, or using the "Save to Project" context menu item.This doesn't save the worksheet to the connected {{UBIK}} Environment.As soon as you save a worksheet to the project, all affected models in the saved worksheet will be marked as project models.
After saving the worksheet, the project will be marked as changed and can be saved using {{key press|Ctrl}} + {{key press|S}} or the save symbol in the tool bar, when the project page is selected.
Some operations A project can take a whilehave multiple worksheets with overlapping content (i.e., for example when a lot of data is loaded into models that exist in multiple worksheets). Changing a worksheet. Such tasks can be canceled using affect other worksheets after saving the stop symbol change in order to keep consistency (this happens automatically): the toolbar or {{key press|Esc}}worksheet content is propagated to all other worksheets (and to the project), so that your project situation is consistent.
==== Merging worksheets with = '''Saving Worksheets to the {{UBIK}} environment Environment''' ===== You can save an active worksheet to the currently connected {{UBIK}} Environment busing the "Save to {{UBIK}} Environment" toolbar button or context menu item.This doesn't save the worksheet to the project.The worksheet content will be saved to the database and the results will be shown in a new worksheet.Smart Studio's object pickers will be updated with the new models. ==== Merging Worksheets ====
Worksheets can originate from an import, from the project or from the environment.
Wherever it might have came from, you can save the worksheet content to either the project or the environment.
However, in some cases the worksheet content needs to be combined with what you already havein order to resolve conflicts.Currently, it ===== '''Merging worksheets with the {{UBIK}} Environment''' ===== It is possible to merge a worksheet with the environment Environment ({{UBIK}} database).
The result is a combination between what you have defined in your worksheet and what the environment contains already regarding that situation.
In case of a conflict, normally the environment "wins". E.g., if you have a metaclass meta class A deriving from another metaclass meta class B in your worksheet, but the environment specifies C as a parent of A, the result of a merge would be A deriving from C. Using the inspector, you can specify whether a worksheet should override the environment on a merge. In that case, the merge result from the example above would be A deriving from B.
==== Merging worksheets The result of such a merge is not saved yet; you can edit it and decide what to do with it - e.g., save it to the SmartStudio project ====, save it to the environment or dismiss it.
New ===== '''Merging worksheets can be added to with the SmartStudio project by saving them. In this case, the worksheet content is propagated to all other worksheets (and to the project), so that your project situation is consistent.''' =====
=== Project models ===The project's models can be selected and added to worksheets using Smart Studio's object pickers.You can remove models from also merge a worksheet with the currently active project (, without saving it.The result is a combination between what you have defined in your worksheet and all its worksheets) on what the project pagecontains already regarding that situation, or directly from In case of a single worksheet (using conflict, normally the inspector)project "wins".In E.g., if you have a meta class A deriving from another meta class B in your worksheet, you can choose but the source (project or environment) for specifies C as a model. As a consequenceparent of A, its details and dependencies will be updated and the model will result of a merge would be marked with the symbol for its sourceA deriving from C. As soon as Using the inspector, you save can specify whether a worksheet to should override the projecton a merge. In that case, all affected models will the merge result from the example above would be marked as project modelsA deriving from B.
The result of such a merge is not saved yet; you can edit it and decide what to do with it - e.g., save it to the project, save it to the environment or dismiss it.
==== Cancelling active tasks ====
Some operations can take a while, for example when a lot of data is loaded into a worksheet. Such tasks can be canceled using the stop symbol in the toolbar or {{key press|Esc}}.
== {{UBIK}} Environment ==