Hi,
There seems to be a bug when loading a model with task executers, but it only seems to happen when saving the model in .fsx format.
Steps to reproduce:
- Open FlexSim 2022
- Drag any Task Executer, for example an Operator, in from the library
- Save the model as .fsx
- Restart FlexSim and open the model. Press Reset.
exception: Exception Caught in FlexSimObject::moveToResetPosition() object: /Operator1 exception: Exception Caught in ObjectFunction457__project_events_OnResetModel_move_objects_to_reset_positions object: MAIN:/project/events/OnResetModel/move objects to reset positions i: MAIN:/project/events/OnResetModel/move objects to reset positions class: MAIN:/project/events/OnResetModel/move objects to reset positions exception: Exception caught in TreeNode::callMemberFunction() c++/dll execution. Throwing... MAIN:/project/events/OnResetModel/move objects to reset positions c: MAIN:/project/events/OnResetModel/move objects to reset positions i: MAIN:/project/events/OnResetModel/move objects to reset positions thisClass: MAIN:/project/events/OnResetModel/move objects to reset positions exception: Exception caught in evaluation of MAIN:/project/events/OnResetModel/move objects to reset positions exception: Exception Caught in FlexSimObject::moveToResetPosition() object: /Operator1 exception: Exception Caught in Navigator::onReset() object: /DefaultNavigator exception: Exception Caught in ObjectFunction240__project_library_FlexSimEventHandler_behaviour_eventfunctions_OnReset object: /DefaultNavigator class: /DefaultNavigator exception: Exception caught in TreeNode::receivemessage() exception: Executive::__reset() exception: int Executive::reset() exception: reset
Demo model: ResetPosition.fsx
I think that this bug has actually been in a couple of versions of FlexSim so far.