Software Verification: Automating The Sap2000 Verification Checking Process
Software Verification: Automating The Sap2000 Verification Checking Process
Overview
The automated procedure for running the SAP2000 verification check uses
Visual Basic for Applications subroutines in a specially prepared Excel file. The
subroutines run the SAP2000 analyses, process the analyses results and compare
the results with the published verification values. The Excel file is named
SAP2000_Verification_xxx where the xxx is a sequence of numbers (e.g., 909)
indicating the version of the SAP2000 program (e.g., version 9.0.9) from which
the comparison results in the Excel file were obtained.
Successful completion of the automated check using the Excel Visual Basic for
Applications subroutine requires that you have both Microsoft Excel and
Microsoft Access. Microsoft Access is run automatically (in the background) by
the Microsoft Excel verification subroutines.
If desired, instead of running the verification example analyses using Excel, they
can be run directly from SAP2000 using a batch file. If this method is used then
only the comparison of results is done using the Excel file. The advantage to
running the analyses using a batch file is that the verification analyes will run
faster. Running the analyses using the Excel file is slower because Excel has to
open and close SAP2000 for each model whereas the batch file method starts out
with SAP2000 open and never has to close or reopen it.
Important Note: The SAP2000 verification models (*.sdb files) must be exactly
as they were issued, with no user modifications. Otherwise the automated
procedure may not work as intended. If any doubt exists as to whether the
verification models have been modified, get the verification files from your
SAP2000 CD. See step 1 in the following section.
Important Note: All of the verification examples will run in the Ultimate
version of SAP 2000. Some of the examples will not run in the Basic, Plus, or
Advanced versions of the program.
Steps for Automation if Analyses Are Run Using the Excel File
Use the following steps to perform the verification analyses and check when the
analyses are run using the Excel file:
a. Set the path to the Sap2000.exe file in cell C3. If the full path to
this file is C:\Program Files\Computers and Structures\Sap2000\
Sap2000.exe then cell C3 should contain C:\Program Files\
Computers and Structures\Sap2000\Sap2000.exe. An easy way to
set this path is to click the Browse for Sap2000.exe button, locate
the SAP2000.exe file and click Open. The correct path for the
selected file will be filled in cell C3.
d. In cell E3 set the option to delete analysis files. This item can be
Yes or No. We recommend using Yes.
6. Click the Run Verification Check button to start running analyses and
performing the verification checks. If the analyses are run the entire
verification may take several hours to complete. If only the checks are
performed then they may take several minutes to complete. A progress
report form indicates the example that the program is currently analyzing
or checking. A summary message box appears when the verification
process is complete.
Steps for Automation if Analyses Are Run Using Batch File in SAP2000
Use the following steps to perform the verification analyses and check when the
analyses are run using the batch file analysis capability in SAP2000:
4. Start SAP2000. When the program comes up, click the File menu >
Batch File Control command.
5. In the Batch File Control form, click the Browse for Existing Batch
Files button in the upper left corner of the form. Locate and open the
batch file SAP2000_Verification.SBF in the C:\MyDir directory.
If the path name is not correct for the files (it should be pointing to
C:\MyDir), click the Change Filename Path button in the lower left
corner of the form to open the Batch File Path form.
In the Batch File Path form, make sure the Change the Path of All
Files option is selected. Then click the Select Path button, select the
path to C:\MyDir, and click OK to return to the Batch File Control
form. The path names in the Batch File Control form should now be
pointing to C:\MyDir.
6. Click the Run Models In Current Batch File List button in the upper
right corner of the form to automatically run all of the verification
problems.
7. After the verification problems have been successfully run (this may take
several hours), open the Excel file named SAP2000_Verification_xxx.xls.
Go to the worksheet named “Verification Control” and do the following:
Cell C2 reports the version of the Sap2000 program from which the published
Sap2000 results were obtained.
Cell C5 reports the date and time that the last check was performed.
Column F on the Verification Control worksheet reports the problem status. This
is either Not Checked, meaning that the considered problem has not been
checked, or it is the maximum percent difference between any published result
obtained from the Sap2000 version specified in cell C2 and the result obtained
for the verification. The percent difference for each item considered is calculated
as:
The Example X-XXX worksheets typically consist of five or more columns filled
with data, then a blank column, and then another four columns filled with data.
The following figure shows a typical example.
The first five or more columns show the verification results as they are published
in the current verification examples. The formatting may in some cases be
different from the published tables, but the data is the same.
The last four columns are related to the results obtained from the current
analyses. The column labeled SAP2000 Result is automatically filled by the
Excel macro that is run, as described in the previous section.
The Number of Decimal Places column reports the number of decimal places that
are used for the comparison. It is equal to the number of decimal places used in
the published results.
The values in the Result for Comparison column are the values in the SAP2000
Result column rounded to the number of decimal places indicated in the Number
of Decimal Places column.
The % Diff From Version xxx column shows the percent difference between the
published Sap2000 result and the result obtained for the verification. The percent
difference is calculated as: