question

Carlos Reyes avatar image
2 Likes"
Carlos Reyes asked Carlos Reyes commented

Creating a module in FlexSim

Hi everyone!

Hope you are doing great!

I'm following the user manual to create a module, but when I create a module node and the subnode within it and save the defaults with the button I created in the menu toolbar to apply: applicationcommand("savedefaultviewproject") it doesn´t create me the files testmodule.fsx and a testmodule.t in the folder "testmodule", so when I close FlexSim and open it again it's like the changes were unsaved. Do you know what am I doing wrong?


I attach some evidence of my process:

1673547195888.png

My custom button to save defaults:

1673547232360.png

FlexSim\modules directory :

1673547303579.png

Save Default Project/View:

1673547417683.png


Thanks for your answers!


FlexSim 23.0.1
module sdkdevelopmentmodulestree nodemodule development
1673547195888.png (35.4 KiB)
1673547232360.png (25.3 KiB)
1673547303579.png (39.9 KiB)
1673547417683.png (8.8 KiB)
5 |100000

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

1 Answer

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Carlos Reyes commented

It sounds like testmodule/testmodule.fsx (or .t) isn't saving. If you run FlexSim as an administrator and then repeat your steps, do the steps work? If so, then you probably don't have permission to save in that directory.

To avoid needing to run as an administrator, then follow the steps in the quick start to create a development version of FlexSim, in a location where you have permission to modify files:
https://docs.flexsim.com/en/23.0/Reference/DeveloperAdvancedUser/ModuleSDK/QuickStart/QuickStart.html#preparing

· 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.

Carlos Reyes avatar image Carlos Reyes commented ·

Thanks @Jordan Johnson !

It works if I run FlexSim as an administrator and I also put a development version of FlexSim as you said and now I don´t need to run as administrator FlexSim to save the changes.


regards!

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.