Exporting a Model Fragment
Create a copy of a submodel by getting the hierarchical structure.
Purpose
You can export a selection of model elements with or without their subelements so as to be able to undo changes later or to make the selection available as a reusable model fragment or as a model template.
Please note when making the selection that the model fragment or model templates will always be imported as a whole and you cannot select part of it. All content of a model fragment is e.g. imported with the same settings in the Load Model Fragment dialog.
Attention
Please note that model content (for selection without subelements: users, roles; for selection with subelements: additional profiles, database connections, display languages, application configuration etc.) is also exported (and imported) when a model fragment and selected model root is exported.
Note
To copy and paste model elements within a model or in other models, use the corresponding commands on the clipboard.
Exporting a Selection as a Model Fragment
Prerequisites
Your role has the Use Model Fragments privilege.
Context
The commands for exporting a selection as a model fragment:
-
Export Selection... Export the currently-selected model elements as a model fragment to a file.
-
Export Selection Including Subelements...Export the currently-selected model elements as a model fragment to a file, including all subelements.
The commands for exporting a selection open the standard Save as... dialog.
The commands can be found under Import/Export>Export>Model Fragment.
How to proceed
-
In the model, select the elements that you want to export to a file as model fragments, either separately or with their subelements.
-
To save the selection separately as a model fragment, select
Import/Export>Export>Model Fragment>Export Selection... -
To save the selection including subelements as a model fragment, select
Import/Export>Export>Model Fragment>Export Selection Including Subelements...The Save As standard dialog appears.
-
Select the directory and specify a file name for the model fragment file (*.aob).
-
To save the model fragment, click on Save.
The selection is saved in the model fragment file and the dialog closes.
Exporting a Selection as Model Template
Prerequisites
In order to export as model template, you need administrator rights for the model.
Context
The command for exporting a selection as a model template is:
-
Export to Model Template... Export the selected model part as a model template. This command can only be carried out by users with model administrator rights.
The command for saving a model template opens the dialog Save Model Template, where you can specify a name for the model template and define whether you want to save the selection as a base template or as an add-on template.
You also need to export the configuration from the configuration editor if you want to create a base template.
The command can be found in the ribbon under Import/Export>Export>Model Fragment.
How to proceed
-
Select the elements in the model that you want to export to model template.
-
Select
Import/Export>Export>Model Fragment>Export to Model Template...The Save Model Template dialog appears.
-
Enter a name for the model template (without file extension). You can select an existing file from the drop-down list to overwrite.
The selection is saved in the model fragment file and the dialog closes.
-
To export the selection as base template, activate the Base Template radio button.
Please note that you must also export the matching configuration in the configuration editor.
-
To export the selection as add-on template, activate the Add-on Template radio button.
-
To save the model template, click on Export.
The selection is saved in the model template and the dialog closes.
