question

CSN avatar image
0 Likes"
CSN asked CSN commented

Problems when loading all merged replacements

Hello,

In the Module SDK tutorial, after Load all merged replacements, I did not see that the fsx file in the merge folder was replaced with the FlexSim Tree. Is my operation wrong?

And after manually importing the fsx file in Merge, only the original and master treenode in the module are replaced with changes to both FlexSim X.5 and testmodule. Do I still need to make changes in testmodule?

Hope to get your help, thank you.

FlexSim 21.1.4
module sdksdk
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

CSN avatar image CSN commented ·

This is a question of our users, can you help answer it, please. @Phil BoBo

0 Likes 0 ·

1 Answer

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered CSN commented

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.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

CSN avatar image CSN commented ·

Thank you very much for your answers, I will reply to this user what you said.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.