Hello,
I am trying to modify an EventFunction to alter the VideoRecorder.I noticed that the object created in the model doesn't have event functions, so I suppose they use the class functions (like inheritance in C++ classes).
The thing is, I am not able to compile that code. I try to delete all the text or make some changes, and I don’t know how to compile and make FlexSim execute that code on onMessage.
In some cases, I don't know how, but I manage to do it. However, I think that I compile it as FlexScript, and then it returns an error.
I try to build the node in FlexSim, toggle the node to C++, and return to C++. I try the "make all code" buttons on the toolbar, but it doesn't seem to take effect. If this node exists and is a C++ node, the original code is executed, even if I remove all the text.
I have been trying to use the SDK module to modify it, but I haven't managed to achieve anything.
I don’t think it is necessary to destroy the VideoRecorder object in the model and recreate it to make the changes take effect, but I tried it, and it didn’t work either.
What can I do to compile that code and make it work?