I don't understand what "I did not see that the fsx file in the merge folder was replaced with the FlexSim Tree." means.
I also don't understand what exactly is meant by "after manually importing the fsx file in Merge" or "only the original and master treenode in the module are replaced with changes to both FlexSim X.5 and testmodule."
I went through the Module SDK guide on "Maintaining Your Module" in Module Development to try to figure out what might be going wrong.
To start the merge, right-click in the tree view, and choose Modules > testmodule > Save All Replacements for Merge. Now go into the FlexSim\Modules\testmodule directory. FlexSim will have created a new directory called fssavedreplacements.
When you do that operation in FlexSim 21.1.4, the fssavedreplacements directory gets created in FlexSim\modules\fssavedreplacements instead of FlexSim\modules\testmodule\fssavedreplacements.
Because of this, it isn't in the correct location for the later steps.
1. Hit the save button at the top; we should see that KDiff has saved the file into the FlexSim\modules\testmodule\fssavedreplacements\merge directory.
2. Go back into FlexSim, and in the tree's right-click menu choose Modules > testmodule > Load All Merged Replacements. This will load any files in the merge directory into their corresponding replacement nodes in the tree.
You can see that those steps are looking for those folders and files in FlexSim\modules\testmodule\fssavedreplacements, not FlexSim\modules\fssavedreplacements.
So to fix it, copy the files from FlexSim\modules\fssavedreplacements to FlexSim\modules\testmodule\fssavedreplacements so that the 'Modules > testmodule > Load All Merged Replacements' operation can find them correctly.
Phil BoBo
Sr. Manager, Software Development