question

Alessio Merlo avatar image
2 Likes"
Alessio Merlo asked Brandon Peterson edited

startupinstall library trigger isn't fired in flexsim 2016

Good morning community,

I discovered an issue with a library created in FlexSim 7.7 and update for Flexsim 2016 or 2016 update 1.

The issue is related to the trigger of startupinstall which isn’t called by the app when it start up.

In the startupinstall trigger the library simply adds a note inside “Model:/Tools”. In flexsim 7.7 it works correctly, but in the new version the trigger isn’t fired.

I attached the file .lib and the startupload .txt.

Had someone similar problem? Is the behaviour of the library modified?

Thanks for your support.

FlexSim 16.1.0
libraryflexsim 2016startupinstall trigger
testlib.fsl (2.2 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.

Matt Long avatar image
3 Likes"
Matt Long answered Brandon Peterson edited

Looks like this is a bug that was introduced in 7.7 when changes were made to remove tonum() casts from commands to support the new var type. The issue has been fixed and will be included in the next bug fix release for 2016 and 2016 Update 1.

· 1
5 |100000

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

Brandon Peterson avatar image Brandon Peterson ♦ commented ·

Alessio,

If you are OK loading the library manually then the loadinstall node is the one that will be used when the library is loaded by a user. I renamed the startupinstall node in your user library to loadinstall and it worked correctly in Version 2016.1

This may be an acceptable work around for you until the fix comes out.

I assume that you have already seen it but just in case there is a more detailed description of these concepts in the "Automatic Install" portion of the "Custom Libraries Concepts" section of the User Manual.

I hope this helps,

Brandon

4 Likes 4 ·
Marco Baccalaro avatar image
0 Likes"
Marco Baccalaro answered

The bug is in FlexSim 2106 and FlexSim 2016 Update 1 versions. Any dropscript code into the startupinstall node isn't executed. In FlexSim 7.7 it was working.

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.