This manual features many example scripts to demonstrate how the objects, properties and methods of the Multiframe Automation interfaced are used. Unless otherwise noted, these scripts are written in VBA and were developed using either Microsoft Excel or Microsoft Word. Most of the scripts in the manual can be executed by inserting the code between the dashed lines in the following macro.
Sub Test()
'definition of app and frame objects
Dim mfApp As New
Multiframe.Application
Dim myFrame As Multiframe.Frame
Set myFrame = mfApp.Frame
'Insert sample code here!!!
'----------------------------
'----------------------------
End Sub
Note that many of the scripts will require a suitable structure to be present within the Multiframe application as they refer directly to particular nodes, elements or load cases.
All the example code presented in this manual was written using the VBA editor provided within Microsoft Office 2000. This code uses some features not available in the version of VBA provided with earlier versions of Microsoft Office. One significant difference is that the older version of VBA does not support the use of enumerated data types which have been used throughout the Multiframe Object model. For this reason we recommend the use of Microsoft Office 2000 products when writing VBA scripts. However, scripts can still be written using Office 97 in which case enumerated values must be replaced by their integer value. All the enumerated types, and their values, used by the Multiframe Automation Model are listed in Appendix A of this document.