Constraints
Supported Scope
-
Product line information is not supported. Feature assignments to the model (activation conditions) are not exported, and the fact that they were not exported is not displayed. Even if written in a YAML file, they will not be imported.
-
Diagram layout information cannot be exported or imported. Models created through import are added as shapes to existing ER diagrams, and their position is determined automatically.
-
View definitions and project settings cannot be exported or imported.
-
Rich text is handled only in HTML format. XAML format and custom format rich text are not exported or imported; the content remains as it is in Next Design.
Export
-
The metamodel information file (
nd.metamodel.yaml) will not be exported in the following cases: -
For Designer Edition
-
If the profile is protected
This file is necessary when editing the exported YAML and reflecting the changes in the model. It is not required if you only want to view the contents of the exported YAML.
If this file is needed, an architect who can edit the profile should export it and then expand and share the file.
-
The following information will not be exported:
-
Elements that can only be edited within the diagram (such as lifelines and messages in sequence diagrams) and references to those elements
-
System fields
-
Fields disabled by profile tailoring
-
Fields of types used internally by Next Design, such as shape positions and line paths
-
Line breaks within values will be standardized to LF. Text with CRLF line breaks in Next Design will only have the line break notation changed.
Import
-
Fields with multiple values, such as strings and numbers, are exported to the YAML file, but are not reflected during import (a warning will be issued and the import will be postponed).
-
Fields of types used internally by Next Design, such as shape position and line path, will not be imported even if written in the YAML file.
-
When there are multiple associations to the same object (e.g., two transitions to the same state), you can only remove one of them by rewriting the reference on the source side (where
relis written). From the target side (where only{id: …}is written), you can only remove all associations to that object at once. Also, you cannot increase the number of associations to the same object in YAML. -
You cannot create an association by specifying an association class. Even if you write a different association class in the
classofrel, it will be created as an association of the association class of that reference field. -
Associations without names (association classes that do not have a name field) will not be reflected even if you rewrite the
nameofrelin the YAML file. -
After changing the profile (metamodel), you may not be able to import the YAML file exported before the change. Please re-export after making changes.
-
When importing from the screen, you cannot choose to only remove references not written in the YAML file, or only delete child elements that are not written (Import Rules).
YAML files received from external sources
-
The file pointed to by
$filecannot be placed outside the designated folder. The criteria are the output folder for exports and the folder containing the main file for imports. Absolute paths, UNC paths, or$filethat leads outside the folder will result in an error. -
If the file pointed to by
$filecannot be read, it will not be considered to have no child elements, and the process will be interrupted with an error. -
A set of YAML files received in zip format cannot be read directly. Please extract them to an empty folder before importing. Since the extraction is performed by OS or other tools, please ensure that the zip file does not contain any files that will be written outside the destination folder (such as paths containing
../). -
When receiving a YAML file from an external source, process it in the following order: validate → test import (
--dry-run) → import (Importing Received YAML).
yamlexchange
- Pass the main file to
yamlexchange import. When importing only a part, specify the model with--parent. - Imports made with
yamlexchange importcannot be undone. - Close the same project in Next Design before executing
yamlexchange import. Also, do not executeyamlexchange importto the same project simultaneously.yamlexchangeoverwrites the project without checking if it's open in Next Design and without warning. - If you omit
--outand use--cleanwithyamlexchange export, the metamodel information file (nd.metamodel.yaml) that you manually placed in theYamlfolder will also be deleted. If you want to keep the file you manually placed because your environment doesn't allow exporting metamodel information files (Export), move it to another location before running--clean.