This one will be really short. When working with FMUs / SCL scripts we often ask the user to put them in a dedicated folder (vault) as a prerequisite. This is a repetitive task that should be done when migrating to a new Process Simulate version. So why not give the user a way to import these easily? This is what we are doing in v2408. Or at least start doing it. The idea is to have dedicated commands that allow the users to import these modules fast.
The 'Import FMU' and the 'Import SCL block' commands allow you to add content in the vault via a standard open file dialog:
In the case of SCL blocks the command validates the scripts. First it checks the syntax. Then it makes sure naming convention (file name matches block name) is obeyed.
In the case of FMUs the command simply unzips the file. It should probably check the FMU version and type but this is not implemented yet. For now if the FMU is not supported you won't see it in the SCL editor even after successful import.
Another improvement could be to import multiple files at once. For now only one file can be imported.
Note: After a successful import reload the resource in the SCL editor so that the list of data types and functions is refreshed.
Comments