question

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann asked Phil BoBo edited

"Save Defaults" not working in version 22.2 and 23.0

Hi all,

I encountered a problem when trying to update a VR model we had build in the 20.0 version to the current version of FlexSim. For the model we had made changes to some of the eventfunction nodes in the view tree to alter the way one moves around in the model (incrementally changing the camera position to walk around instead of teleporting).

1672819285639.png I followed the instructions in the quick start guide to model development, adding a button to save the defaults to the toolbar. When I press the button (or run "applicationcommand(savedefaultviewproject)" manually) FlexSim seems to save the changes as in previous versions.

1672819670221.png

However in the install directory I am left with the old files in the default state.

1672819763081.png

This issue occurs only starting from 22.2 (when the "Save Defaults" option was added to the "Customize Toolbar" tab in the global references). In 22.1 and older saving the changes works without problems.

Any idea what I might be missing to get this to work?

FlexSim 23.0.1
module sdksave defaults
1672819285639.png (56.4 KiB)
1672819670221.png (2.8 KiB)
1672819763081.png (10.4 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

·
Ralf Gruber avatar image
1 Like"
Ralf Gruber answered Phil BoBo edited

Hi Felix,

this seems to be by design:

https://answers.flexsim.com/questions/131274/error-with-command-applicationcommandsavedefaultvi.html

It is odd, though that you can add a button to save the defaults with what Phil said in the linked post. Probably not on purpose. Or is this button meant to only save changes originating from a module?

@Phil BoBo


· 2
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·
Thank you for pointing me to that post. I must have missed it when I searched for this issue on the forum.

I managed to change the code in the nodes by adding them as replacement nodes to a custom module, as explained on the module development manual page.

1 Like 1 ·
Phil BoBo avatar image Phil BoBo ♦♦ commented ·

For FlexSim engine developers who develop and maintain defaultproject and defaultview using a debug version of FlexSim, the Save Defaults button saves those files and any loaded modules.

For FlexSim module developers who are using a released version of FlexSim, the Save Defaults button only saves modules now.

This is on purpose and by design. Only FlexSim engine developers should be modifying defaultproject and defaultview. Module developers modifying those files have caused several startup crashes over the years, so they no longer are able to shoot themselves in the foot anymore. If you want to modify the main or view trees, use a module; that's what they're for.

1 Like 1 ·

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.