File Splitting (YAML Exchange Settings)
Overview
During export, the selected model and its sub-models are converted into YAML files. If there are many sub-models, you can specify classes or models to split them into individual files for export. When processing YAML files with AI, it's easier to handle if you split them so that one file isn't too large.
Note that this setting is not related to Next Design's model file splitting. You can specify this whether you have split the model into files or not.
- There are two methods for setting file splitting: class specification and model specification, and you can also combine them.
- For example, when using this in a component design scenario, by using the former method and specifying the "component design class," which corresponds to the unit of design, as the target for file splitting, you can split the files without the trouble of specifying each individual model as the target for file splitting.
The selected model and its submodels are exported as follows, depending on whether they are designated for splitting:
| Model | Not designated for splitting | Designated for splitting |
|---|---|---|
| Selected Model | Automatically added to the settings and then exported to that model's file (Designation to be added to settings). | Exported to that model's file. |
| Subordinate Models | Written within the parent model's file. | Exported to each file. The parent model's file contains a line pointing to that file. |
For the structure of the exported files, see File Structure and Formatting > Exported File Structure.
File splitting settings are saved in the settings file yamlexchange.ndycfg in the same folder as the project file and used for export. If nothing is specified, the entire project becomes a single file.
When managing YAML files with Git, please also manage the configuration files together.
Splitting by Class
This shows the procedure for splitting and outputting each model belonging to a specified class (e.g., SoftwareComponent class) into separate files. After specifying the target class for file splitting in the settings screen, select the target model (or the parent model containing the target model) and export.

- Click [Data] > [YAML] > [Setting] from the ribbon.
- Select the class to split into files on the [Class] tab and check the checkbox.
- Click [Save and Close].
- In the Model Navigator, select the model containing the specified class, and click [Data] > [YAML] > [Export] from the ribbon. 5. Close the Completion dialog.
- In the Information window's Output tab (Category [YAML Exchange]), verify that the model of the specified class has been output as a split file.
Splitting Parent and Child Models
This procedure shows how to output the parent model A and its child model A1 to separate files. Select A and A1 in order and export them.

-
Select Model A in the Model Navigator and click [Data] > [YAML] > [Export] from the ribbon.
-
Close the Completion dialog.
-
Select Model A1 and export it in the same way.
-
Close the Completion dialog.
-
In the Information window's Output tab (Category [YAML Exchange]), verify that A and A1 have been added to the settings as targets for file splitting.
-
Click [Data] > [YAML] > [Setting] from the ribbon, and in the [Model] tab, verify that A and A1 have [Target] assigned to them.
In A's file, instead of the A1 portion, a single line ($file) pointing to the A1 file will be written. The contents of A1 will be written to the A1 file.
Specification added to settings
If you select and export a model that is not specified as a target for file splitting, that model will be automatically added to the [Target] in the settings. If you select a model that was specified as [Excluded], it will also be removed from [Excluded] and added to [Target]. The addition will be displayed in the Output tab.
- In the parent file, only the portion of that model will be replaced with a single line (
$file) pointing to that model's file. The rest of the parent file will not be overwritten. - The added specification remains, so even if you export the entire project from now on, that model will be subject to splitting.
- If you want to keep it all in one file, select the higher-level model (or project) that has the file splitting specification and export it.
Changing the File Splitting Unit
On the [YAML Exchange Settings] screen, you can specify which models should be subject to file splitting by class or model. The two can be used in combination. Specify them collectively by class, and then individually add or remove exception models in the [Model] tab.
After changing the specification, re-exporting will reflect the changes in how the exported files are split.
Screen Layout

-
From the ribbon, click [Data] > [YAML] > [Setting].
-
The [YAML Exchange Settings] screen will be displayed.

| No | Area | Content |
|---|---|---|
| ① | Top | Path to the settings file. If there are unsaved changes, "● Unsaved" will be displayed. |
| ② | Left Side | [Class] tab (list of classes to be split into files) and [Model] tab (model tree). Both can be filtered. |
| ③ | Top Right | Details of the class or model selected on the left. For classes, the number and size of files when that class is targeted for file splitting will be displayed. |
| ④ | Bottom Right | Output Files (list of files to be exported) and the number and size of files (average and maximum). The configuration when the entire project is exported will be displayed. |
| ⑤ | Bottom | [Undo]・[Redo]・[Save and Close]・[Cancel] |
Specifying by Class
The basic method is to specify by class, such as "All components will be split into files."

- In the [Class] tab, select the row of the class you want to split into files.
The number and size of files when that class is split will be displayed in the upper right. - Check the checkbox for the class.
The result will be immediately reflected in [Output Files] in the lower right. - Check the number and size of the exported files.
- Click [Save and Close].
- All models of the specified class will be split.
- The specification is only valid for that class. Since derived classes are not included in the file splitting process, if you want derived classes to be included as well, please specify them.
Specifying by Model
To split models where each class is unique, such as process-specific models directly under the design model, or to split models with many sub-models at a desired granularity, specify them individually in the [Model] tab.

- In the [Model] tab, hover your mouse pointer over the row of the model you want to specify.
- Click [Target] or [Exclude] displayed at the right end of the row.
Clicking again will revert to no specification. - Check the number and size of the exported files.
- Click [Save and Close].
| Specify | Meaning |
|---|---|
| [Target] | This model will be included in the file splitting. Rows that are targeted by class specification cannot have [Target] removed. Specify [Exclude] if you do not want to include it in the file splitting. |
| [Exclude] | This model will not be included in the file splitting. Even if you specify that class later, this model will be excluded. |
| None | Follows the class specification. |
- The top level of the tree (project) is always the main file and cannot be specified.
- Clicking [Show in ND] or double-clicking a row will display that model in Next Design. If you always want the selected model to be displayed in Next Design as well, turn on [Follow Selection to ND] (default is off).
Judge the good and bad results of the splitting by the largest file. Even if the average is small, if one file is too large, it will be difficult to pass it to AI.
If the settings file still contains specifications for deleted models or classes that have disappeared from profiles, you will not be able to save. Since these specifications cannot be removed from the screen, open yamlexchange.ndycfg in a text editor, delete the item, and then reopen the screen.
Exclude from File Splitting

- On the [Model] tab of the [YAML Exchange Settings] screen, click [Target] for that model to return it to "No specification".
- Click [Save and Close].
- Select the parent model (or project) that has the file splitting specification and re-export.
That model will return to its parent file. The file for that model, which is no longer needed, will be automatically deleted during export.