Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Excel Macros using OpenSTAAD

This Excel file checks the bending capacity of a rectangular concrete beam with
the reinforcement already laid out. The capacity is checked against the maximum
sagging moment produced from a series of load cases. The beam is analyzed in STA
AD.Pro. The results are extracted and linked into Excel using OpenSTAAD and VBA.
A macro (Examp8) has been created to retrieve the maximum sagging moment along
the span of the beam as well as the width and depth of the cross-section of the
beam. The maximum sagging moment for each load case is extracted, and the govern
ing moment is the largest compression moment of the maximum moments.
The calculations for checking the capacity is located on the sheet marked "Concr
ete" while the extraction of the values from STAAD occurs on the sheet marked "S
TAAD.Pro Output". Once the file is opened (simply click on the link above to ope
n the file), Excel will warn of macros present in the file. Simply click on "Ena
ble Macros" to enable the Examp8 macro created for this example. It is always re
commended to do a virus scan on any macro before opening it - including this one
! Proceed to the sheet named "STAAD.Pro Output" and change the values of File Na
me (cell B14) and Member Number (cell B15) to reflect the file and member number
to be considered. Make sure that there are valid results for the STAAD file sel
ected and they exist in the same directory as the STD file. To run the macro, si
mply press "CTRL + O" or go to Tools->Macro->Macros and choose the macro named E
xamp8. Click on Run to start the macro.

You might also like