The heart of this tutorial is running the script file, Macro_Example.pvb. This script demonstrates the building blocks to combine VB scripting with the power of PRODASV35. This script illustrates the following:
- The use of parameters that are substituted automatically with values from the parameter file before running. This feature of PRODASV35 scripting is only available when a script is run from a command file.
- Setting complete filenames (file path concatenated to filename)
- Opening a Projectile
- Unlocking a Projectile
- Using the Visual Basic date and time functions to include data and time information in the output file name
- Creating an output file
- Writing the following output file
- Generic Header
- Text String
- PRODASV35 scalar PRODAS data embedded in a text string
- PRODASV35 model data
- PRODASV35 table
- Accessing the length of PRODASV35 elements
- Modifying the lengths of PRODSAV35 elements
- Access PRODAS tabular and scalar data
- Refreshing the PRODAS model with the changes
- Running PRODASV35 analyses
- Basic VB looping
- Closing the model without saving
- Exiting PRODAS
The example PRODASV35 script also uses standard Visual Basic constructs like looping, defining values, dimensioning variables, messager box, comments and much more.
Previous
Top
Next