Script Libraries

Script Libraries provide a way to share scripting code between Script Components (Legacy), macros, and Script Schedulers. A Script Library is code that is preloaded into each script. Thus, a set of common subroutines may be defined in a Script Library and then made available to all other scripts within ModelCenter.

As an example, consider a function that searches through an array to find the maximum value of all elements. This function may be developed and quickly implemented as part of a Script Component (Legacy). The function can be quickly implemented in the Script Component (Legacy), but could also be stored in a single Script Library and accessed from all scripts.