question

martin.j avatar image
1 Like"
martin.j asked Phil BoBo answered

Annoying Compile Notice

I am not using C++ but only Flexscript, bu at some point in my Flexsim project I have started to get an annoying compile message whenever I pres the run button after a reset. compile-notice.jpg I have seen this issue before but usually solved it by making a new model and copying my current model content into it, but its a fair amount of work. I would rather not spend the effort if there is a simpler way to solve this problem.

Any idea what causes this issue and how to solve it? It doesn't help to compile the session. It simply fails to compile.

FlexSim 17.1.4
compiler errornotice
compile-notice.jpg (14.1 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

·
Phil BoBo avatar image
7 Likes"
Phil BoBo answered martin.j commented

You get that message when the node MAIN:/project/exec/shouldcompile is not set to 0 when you start to run the model. That node gets set to a value other than 0 when various things happen in the program, such as toggling a trigger as C++ or loading a model/treenode with a C++-toggled node in it.

If you press OK (to proceed anyway) instead of Cancel, then the message will stop appearing in subsequent runs in that session of FlexSim, until you perform another operation that resets the value to non-0 again, such as toggling a node as C++ or loading a model/treenode with a C++-toggled node in it.

If you open the System Console and then execute the following script, it will print a list of all the nodes in your model that are toggled as C++:

applicationcommand("findallcodenodes", model(), 0, 1);

You can then find those nodes in your model and change them to not be C++.

Once you have no C++ nodes in your model, reset and run. The message will appear again. Press OK that you wish to proceed anyway. This will clear the variables that are tracking whether there are C++ nodes in your model. The next time you reset and run, that message will not appear and it will no longer appear when you save and reload the model if you successfully changed all the C++-toggled nodes to not be toggled as C++ anymore.

5 |100000

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

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.