To run this script
Select Scripts >VSS > Create_XML_Library from the Menus.
Or, in versions that support the script, you can run the utility directly from this page using this button.
This script helps you create a library of parts for VSS. You configure the parts you would like them in an AWRDE project and the script will write out all the necessary information to an XML format that is used to describe parts libraries. It is much easier to configure the parts in a system diagram than editing XML files directly.
To use this script:
Organize your project how ever you like. The system diagram names will become the folder names in the library created. There will be one part in each folder for the system block placed inside each system diagram. The ID of the model in the block will become the name of the model in the library.
Run the script as described above.
You will be prompted to specify the name for a new library or to select an existing one. The file name specified here will be the name that will be used for displaying the library in AWRDE Elements tree. The default location for the xml file is: C:\\Users\\ user \\AppData\\Local\\AWR\\Design Environment\\ version \\xml\\System Blocks where user is the username in the user's computer and version is the version of software you are using. A different location may be specified, if needed. Please note that if an existing library is selected it will be rewritten by the script
An xml file will be created at the specified location. If the library contains dependent data files, they will be stored in a subfolder with the same name in the same folder location; if the subfolder does not exist, it will be created during this process.
Once created, the library will appear under the Libraries node in the Elements tree next time AWRDE is started.
You can open the
example shipped with the AWRDE to see an example library setup.
In this example, the system diagrams look like the following:
After the script is finished with the default settings with a library name of "My Library" and the project is reopened (this is needed to load the newly formed XML), the element tree will now show these parts as being available for use.