question

Sergio V6 avatar image
0 Likes"
Sergio V6 asked Sergio V6 commented

Error with command applicationcommand("savedefaultviewproject");

Hi.

i tried to run the command applicationcommand("savedefaultviewproject") in flexscript to generate the .fsx files, but in the newer versions of flexsim the command doesn't generate any file.

22.1.2 - It works

22.2.0 - It works

22.2.2 - Doesn't work

22.2.3 - Doesn't work

Is this an error or the way to generate theses files is different in the newer versions?


Regards!

FlexSim 22.2.3
applicationcommandsavedefaultviewproject22.2.3
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

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Sergio V6 commented

This is on purpose. FlexSim shouldn't be saving the defaultview and defaultproject files. Changes to the MAIN and VIEW tree should be in modules and your modules should save correctly when executing applicationcommand("savedefaultviewproject").

· 4
5 |100000

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

Sergio V6 avatar image Sergio V6 commented ·

I just check and yeah, the modules are saved correctly.

Still I have a problem, in former versions of flexsim, I ran the savedefaultviewproject command, then, I modified the menu or some commands, and then I ran the savedefaultviewproject so I can keep the changes in the tree.

As an example, I added an API call before the applicationcommand("save") calls. As another example, I modified the HTML code of the Start page tab (TabPane/StartPage/HtmlPanel/webPanel>variables/html), so it can show me some extra information and also I added some useful links here.

Is possible to do this in the newer versions, so i don't lost the changes each time I restart the application?



0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Sergio V6 commented ·
1 Like 1 ·
Sergio V6 avatar image Sergio V6 Matthew Gillespie ♦♦ commented ·

This worked. Thank you!

1 Like 1 ·
Phil BoBo avatar image Phil BoBo ♦♦ Sergio V6 commented ·
Yes, make a module with these changes.
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.