Professional Documents
Culture Documents
Practice Workbook
This workbook is designed for use for Live instructor led training and for OnDemand training. The explanation,
demonstration, and narrative content are provided by the instructor in the classroom and in the OnDemand
DO NOT DISTRIBUTE - Printing for Student use is Permitted
This exercise workbook is formatted for onscreen viewing using a PDF reader.
TRN020150-1/0001-PW03
Analyze the Model in STAAD.Pro
Learn how to open the STAAD.Pro Model and perform an analysis.
Note: In this Practice Workbook, we will perform a concrete beam design in Microsoft Excel using the member properties and the
maximum bending moments (about the local Z axis) for Beam #21 using the STAAD.Pro model and analysis.
Beam #21
DO NOT DISTRIBUTE - Printing for Student use is Permitted
Note: The goal of this Practice Workbook is to create a macro in Microsoft Excel to obtain the minimum and maximum moments for a
particular beam for each of the load combinations analyzed. The values of the maximum moment in the Excel file should match
those indicated in the STAAD.Pro analysis results.
Sub RCBeamDesign()
Note: Double click on the Sheet2 (STAAD.Pro Output) item in the VBAProject. Notice that the code to execute the RCBeamDesign macro when
the Get Results button is clicked has already been created. Double click on th Module 1 item in the VBAProject to return to the
RCBeamDesign macro.
5. Enter the following functions in the Macro Design Window to initial the OpenSTAAD object:
6. Enter the following functions to obtain link to the current STAAD.Pro model:
Dim stdFile As String
Cells(2,2).Value = stdFile
5. Select STAADLibBentley in the pull down menu. Notice that details of each of the OpenSTAAD functions is available now through the
Object Browser in Excel.
6. Close the Object Browser.
7. Keep this model open for the next exercise.
BaseUnit = objSTAADGUI.GetBaseUnit
If BaseUnit = 1 Then
BaseLengthUnit = “in”
BaseForceUnit = “kips”
Else
BaseLengthUnit = “m”
BaseForceUnit = “kN”
MsgBox (“This macro is designed for English units only. Change the STAAD.Pro > Configuration > Base Unit appropriately.”)
Set objSTAADGUI = Nothing
Exit Sub
End If
Cells(4, 6) = BaseLengthUnit
Cells(5, 6) = BaseForceUnit
3. Enter the following functions to verify if the member exists in the STAAD.Pro model:
Dim Length As Double
Length = objSTAADGUI.Geometry.GetBeamLength (MemberNo)
If Length = 0 Then
MsgBox “Please check the member number is valid.”, vbOKOnly
Set objSTAADGUI = Nothing
Exit Sub
End If
4. Enter the following functions to retrieve the member properties from the STAAD.Pro model:
Dim YD As Double
Dim ZD As Double
3. Enter the following functions to limit the number of load combinations to 10:
If LComboCount > 10 Then
MsgBox (“This macro is designed for up to 10 load combinations only.”)
Set objSTAADGUI = Nothing
Exit Sub
End If
Note: The Excel spreadsheet was created to consider a maximum of 10 load combinations.
4. Enter the following functions to obtain the load combination titles from the STAAD.Pro model:
Dim LComboNum() As Long
ReDim LComboNum(LComboCount)
Dim LComboTitle() As String
ReDim LComboTitle(LComboCount)
Dim i As Integer
For i = 1 To LComboCount
LComboNum(i) = i + LCaseCount
LComboTitle(i) = objSTAADGUI.Load.GetLoadCaseTitle(i + LCaseCount)
Next i
DO NOT DISTRIBUTE - Printing for Student use is Permitted
End Sub
7. Save and close the Macro Design Window for the next exercise.
1. Continue with the Microsoft Excel worksheet from the previous exercise.
2. Select the STAAD.Pro Output worksheet.
3. Enter 21 into field B-7 to instruct the macro to obtain the results to beam #21 in the STAAD.Pro model.
4. Click on the Clear Results button to ensure we start with an empty spreadsheet.
DO NOT DISTRIBUTE - Printing for Student use is Permitted
5. Click on the Get Results button to run the macro and obtain the results from the STAAD.Pro model.
6. Enter the appropriate parameters for this beam (indicated in the Yellow Fields) to define the following:
Reinforcement Data
Material Data
Note: The calculations in the Concrete worksheet have already been defined using the parameters entered for the beam.