P. 1
Beam Col Wall

Beam Col Wall

|Views: 1|Likes:
Published by Hilary Watson
Beam column
Beam column

More info:

Published by: Hilary Watson on May 29, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

05/29/2013

pdf

text

original

Attribute VB_Name = "Module1" Sub Beam() Attribute Beam.

VB_Description = "Beam Design and calculates total quantity of re inforcement from ETABS file" Attribute Beam.VB_ProcData.VB_Invoke_Func = " \n14" ' ' Beam Macro for ETABS v9.5 & V9.6 ' Beam Design and calculates total quantity of reinforcement from ETABS file ' Use Unit kN-m only ' Created By Atul Tegar atul.tegar@gmail.com ' Range("A1").Select With ActiveWindow .SplitColumn = 0 .SplitRow = 1 End With ActiveWindow.FreezePanes = True Dim Str As Double On Error Resume Next Application.DisplayAlerts = False Str = Application.InputBox(Prompt:="Enter Stirrup Length in meters", Tit le:="Stirrup Length") On Error GoTo 0 Application.DisplayAlerts = True Selection.Subtotal GroupBy:=1, Function:=xlCount, TotalList:=Array(17), _ Replace:=True, PageBreaks:=False, SummaryBelowData:=True Selection.Subtotal GroupBy:=2, Function:=xlAverage, TotalList:=Array(4, 8, _ 11, 13, 15), Replace:=True, PageBreaks:=False, SummaryBelowData:=True ActiveSheet.Outline.ShowLevels RowLevels:=2 Range("R1").Select ActiveCell.FormulaR1C1 = "Top Rebar" Range("S1").Select ActiveCell.FormulaR1C1 = "Bottom Rebar" Range("T1").Select ActiveCell.FormulaR1C1 = "Shear Rebar" Range("U1").Select ActiveCell.FormulaR1C1 = "Torsion Rebar" Range("R2").Select ActiveCell.FormulaR1C1 = "=RC[-14]*RC[-10]*2" Range("S2").Select ActiveCell.FormulaR1C1 = "=RC[-15]*RC[-8]*2" Range("T2").Select ActiveCell.FormulaR1C1 = "=RC[-16]*RC[-7]*2*" & Str Range("U2").Select ActiveCell.FormulaR1C1 = "=RC[-17]*RC[-6]*2*" & Str Dim y As Long y = Range("B" & Rows.Count).End(xlUp).Row Range("R2").AutoFill Destination:=Range("R2:R" & y), Type:=xlFillDefault Range("S2").AutoFill Destination:=Range("S2:S" & y), Type:=xlFillDefault Range("T2").AutoFill Destination:=Range("T2:T" & y), Type:=xlFillDefault Range("U2").AutoFill Destination:=Range("U2:U" & y), Type:=xlFillDefault Dim x, x1, x2, x3 As Long x = y + 1 x1 = y + 2 x2 = y + 3 x3 = y + 4 Range("P" & x).Select ActiveCell.FormulaR1C1 = "Steel in cu.m." Range("P" & x1).Select

Bold = True Range("T" & x2).FormulaR1C1 = "=R[-1]C/1000" Selection.End(xlUp).Sort.Select ActiveCell.SortFields.SumIf(Range("B2:B" Range("U2:U" & y)) Range("R" & x1). & y). & y). "B* Average".Bold = True Range("U" & x1).FormulaR1C1 = "=R[-1]C*7850" Selection.Select ActiveCell.Bold = True Range("R" & x2).Row Cells.6 ' Column Design and calculates total quantity of reinforcement from ETABS file ' Use Unit kN-m only ' Created By Atul Tegar atul.FormulaR1C1 = "Steel in MT" Range("R" & x).Select ActiveCell.Count).Select ActiveCell.Font.FormulaR1C1 = "Steel in kg" Range("P" & x2).FormulaR1C1 = "=R[-1]C*7850" Selection.Bold = True Range("S" & x2).FormulaR1C1 = Application.Select ActiveCell.FormulaR1C1 = Application.Bold = True Range("P" & x3).FormulaR1C1 = Application.FormulaR1C1 = "=R[-1]C*7850" Selection. "B* Average". & y).FormulaR1C1 = "Total Steel in MT" Range("R" & x3).FormulaR1C1 = Application.Select ActiveCell.Bold = True Range("T" & x1).Font.SortFields.FormulaR1C1 = "=R[-1]C*7850" Selection.SumIf(Range("B2:B" Range("R2:R" & y)) Range("S" & x).Bold = True End Sub & y).FormulaR1C1 = "=R[-1]C/1000" Selection.Font.Bold = True Range("S" & x1).Select Dim z As Long z = Range("A" & Rows.Select ActiveCell. "B* Average". "B* Average".Font.FormulaR1C1 = "=R[-1]C/1000" Selection.Select ActiveCell.Font.ActiveCell.com ' Range("A1").Select ActiveCell.Clear ActiveSheet.Select ActiveCell.Font.SumIf(Range("B2:B" Range("S2:S" & y)) Range("T" & x).Sort.FormulaR1C1 = "=SUM(R[-1]C:R[-1]c[3])" Selection.FormulaR1C1 = "=R[-1]C/1000" Selection.Select ActiveSheet.Font. Sub Column() ' ' Column Macro for ETABS v9.tegar@gmail.Add Key:=Range( _ .Bold = True Range("U" & x2).5 & V9.Select ActiveCell.SumIf(Range("B2:B" Range("T2:T" & y)) Range("U" & x).Font.Select ActiveCell.Select ActiveCell.Font.Select ActiveCell.Select ActiveCell.

FormulaR1C1 = "Main Rebar" Range("U1").AutoFill Destination:=Range("T2:T" & y). Function:=xlAverage."A2:A" & z). Title:="Ties Length") Depth = Application.Subtotal GroupBy:=1. Function:=xlCount. SummaryBelowData:=True ActiveSheet. Type:=xlFillDefault Dim x. _ 16.Select ActiveCell.DisplayAlerts = True Range("S1"). TotalList:=Array(18).Select . T itle:="Beam Depth") On Error GoTo 0 D2 = Depth / 2 Application.SetRange Range("A1:R" & z) . Type:=xlFillDefault Range("A1").End(xlUp). DataOption:= _ xlSortNormal With ActiveSheet.Orientation = xlTopToBottom .Select ActiveCell. x1.Select ActiveCell. TotalList:=Array(9.Select Selection.AutoFill Destination:=Range("S2:S" & z).Sort .AutoFill Destination:=Range("V2:V" & y). SummaryBelowData:=True Selection.DisplayAlerts = False Str = Application.InputBox(Prompt:="Enter Max Beam Depth in meters". 19).SplitRow = 1 End With ActiveWindow.Row Range("T2"). Order:=xlAscending. 14. PageBreaks:=False.Select ActiveCell.AutoFill Destination:=Range("U2:U" & y).FormulaR1C1 = "Shear1 Rebar" Range("V1").ShowLevels RowLevels:=2 Range("T1").Outline. SortOn:=xlSortOnValues.Apply End With With ActiveWindow .Select ActiveCell.Select ActiveCell. Replace:=True. x3 As Long x = y + 1 x1 = y + 2 x2 = y + 3 x3 = y + 4 Range("R" & x). _ Replace:=True.FormulaR1C1 = "=RC[-15]+" & D2 Range("S2").FormulaR1C1 = "=RC[-1]*RC[-11]*2" Range("U2").Header = xlYes .MatchCase = False . Type:=xlFillDefault Range("V2").FormulaR1C1 = "Location" Range("S2").FreezePanes = True Dim Str.Subtotal GroupBy:=2. D2 As Double On Error Resume Next Application.Select ActiveCell. PageBreaks:=False. Type:=xlFillDefault Range("U2").FormulaR1C1 = "=RC[-2]*RC[-7]*2*" & Str Range("V2"). x2.FormulaR1C1 = "=RC[-3]*RC[-6]*2*" & Str Dim y As Long y = Range("B" & Rows.InputBox(Prompt:="Enter Lateral Ties Length in meters" . Depth.SplitColumn = 0 .SortMethod = xlPinYin .FormulaR1C1 = "Shear2 Rebar" Range("T2").Count).Select ActiveCell.

Select ActiveCell.FormulaR1C1 = Application.Select ActiveCell.Select ActiveCell.FormulaR1C1 = Application.Select ActiveCell.FormulaR1C1 = "=R[-1]C*7850" Selection.Font.FormulaR1C1 = "=R[-1]C*7850" Selection. z3.Font.FormulaR1C1 = "Steel in cu. reinforcement in mm2/m ' Created By Atul Tegar atul.FormulaR1C1 = "=R[-1]C/1000" Selection.FormulaR1C1 = "Steel in MT" Range("T" & x).SplitRow = 1 End With . z1.Bold = True Range("U" & x2).Select ActiveCell.Select ActiveCell.FormulaR1C1 = "=R[-1]C/1000" Selection. Range("U2:U" & y)) Range("V" & x).Bold = True Range("V" & x1)." Range("R" & x1). Range("T2:T" & y)) Range("U" & x).tegar@gmail.Font.Select ActiveCell. Range("V2:V" & y)) Range("T" & x1).Select Dim z.FormulaR1C1 = "=R[-1]C/1000" Selection.m.Bold = True Range("V" & x2). "C* Average".com ' Range("A1").Select ActiveCell.Bold = True Range("U" & x1).ActiveCell.Select ActiveCell.SumIf(Range("B2:B" & y).Font.SplitColumn = 0 .6 ' Shear Wall Design and calculates total quantity of reinforcement from ETABS fi le ' Use Unit kN-m only.Row z1 = z + 1 z2 = z + 2 z3 = z + 3 z4 = z + 4 z5 = z + 5 With ActiveWindow .Select ActiveCell.SumIf(Range("B2:B" & y).5 & V9.Font.SumIf(Range("B2:B" & y).Bold = True End Sub Sub Wall() ' ' Wall Macro for ETABS v9.End(xlUp). "C* Average".FormulaR1C1 = "=R[-1]C*7850" Selection. z4.FormulaR1C1 = "Steel in kg" Range("R" & x2).Select ActiveCell.FormulaR1C1 = Application.Font.Count).Select ActiveCell.Select ActiveCell.FormulaR1C1 = "Total Steel in MT" Range("T" & x3).Bold = True Range("T" & x2).FormulaR1C1 = "=SUM(R[-1]C:R[-1]C[2])" Selection.Font. "C* Average".Bold = True Range("R" & x3). z2. z5 As Long z = Range("C" & Rows.

Select ActiveCell.Select ActiveCell. Title:="Storey Height") CC = Application.Select ActiveCell.FormulaR1C1 = "Length" Range("S1"). Type:=xlFillDefault Range("U2"). Type:=xlFillDefault Range("W2").FreezePanes = True Dim WD. SH.Select ActiveCell.AutoFill Destination:=Range("R2:R" & z). Type:=xlFillDefault Range("R2").Select ActiveCell.FormulaR1C1 = "=SQRT((RC[-6]-RC[-8])^2+(RC[-5]-RC[-7])^2)" Range("S2").Select ActiveCell.FormulaR1C1 = "Gross Area Right" Range("W1").FormulaR1C1 = "Clear Cover" Range("Z2"). Title:="Clear Cover") On Error GoTo 0 CC2 = CC * 2 Application. Type:=xlFillDefault Range("X2").FormulaR1C1 = "Gross Area Left" Range("V1").Select ActiveCell.RC[6])+(RC[5]-RC[6]))*2" Range("U2").FormulaR1C1 = "=RC[-6] * ((RC[-2] .AutoFill Destination:=Range("S2:S" & z).AutoFill Destination:=Range("W2:W" & z). Title :="Shear Wall Width") SH = Application.Sum(Range("S2:S" & z)) .ActiveWindow. Type:=xlFillDefault Range("Z2").02*RC[-2]" Range("Y2").Select ActiveCell.DisplayAlerts = False WD = Application.FormulaR1C1 = "As Right" Range("R2").FormulaR1C1 = "Shear Rebar" Range("U1").Select ActiveCell.FormulaR1C1 = "As Left" Range("X1").FormulaR1C1 = "=RC[-6]*" & WD Range("V2"). CC.InputBox(Prompt:="Enter clear cover of wall in meters".FormulaR1C1 = "Wall Width" Range("Y2").FormulaR1C1 = "=0.FormulaR1C1 = WD Range("Z1").Select ActiveCell.FormulaR1C1 = Application. Type:=xlFillDefault Range("S" & z1).AutoFill Destination:=Range("Z2:Z" & z).AutoFill Destination:=Range("Y2:Y" & z). N2. Type:=xlFillDefault Range("V2").Select ActiveCell. R2 As Double On Error Resume Next Application.AutoFill Destination:=Range("X2:X" & z).FormulaR1C1 = "=RC[-11]*RC[-1]" Range("Y1"). Type:=xlFillDefault Range("T2").AutoFill Destination:=Range("V2:V" & z).02*RC[-2]" Range("X2").Select ActiveCell.InputBox(Prompt:="Enter Average Storey Height in meters ".AutoFill Destination:=Range("T2:T" & z).Select ActiveCell.FormulaR1C1 = "=0.Select ActiveCell.Select ActiveCell.FormulaR1C1 = "=RC[-6]*" & WD Range("W2").DisplayAlerts = True Range("R1"). CC2.FormulaR1C1 = "Main Rebar" Range("T1").Select ActiveCell.AutoFill Destination:=Range("U2:U" & z).FormulaR1C1 = CC2 Range("T2").Select ActiveCell.InputBox(Prompt:="Enter Width of Wall in meters".Select ActiveCell.Select ActiveCell. Type:=xlFillDefault Range("S2").

FormulaR1C1 = "=R[-1]C*" & SH / (2 * 1000000) Range("W" & z2).Bold = True Range("Q" & z4).Font.Select ActiveCell.Bold = True Range("T" & z3).Bold = True Range("S" & z5).Sum(Range("T2:T" & z)) Range("W" & z1).Sum(Range("W2:W" & z)) Range("X" & z1).Bold = True Range("W" & z3).FormulaR1C1 = "=R[-1]C*7850" Selection.Font.Font.Font.FormulaR1C1 = "Total Steel in MT" Selection.Bold = True Range("X" & z4).Bold = True Range("Q" & z3).FormulaR1C1 = "=R[-1]C*7850" Selection.FormulaR1C1 = "=R[-1]C*7850" Selection.Range("T" & z1).FormulaR1C1 = "=R[-1]C*" & SH / 2 Range("X" & z2).Font.Font.FormulaR1C1 = "=R[-1]C/1000" Selection.Select ActiveCell.Sum(Range("X2:X" & z)) Range("S" & z2).Select ActiveCell.Select ActiveCell.Font.Select ActiveCell.Bold = True Range("X" & z3).Select ActiveCell.FormulaR1C1 = "=R[-1]C*7850" Selection.FormulaR1C1 = "=R[-1]C/1000" Selection.Select ActiveCell.FormulaR1C1 = Application.Select ActiveCell.FormulaR1C1 = "Steel in kg" Range("S" & z3).FormulaR1C1 = "Steel in MT" Selection.FormulaR1C1 = "=R[-1]C*" & SH / 2 Range("T" & z2).Select ActiveCell.FormulaR1C1 = Application.Select ActiveCell.Select ActiveCell.Bold = True Range("S" & z4).Bold = True Range("T" & z4).Select ActiveCell.Bold = True Range("W" & z4).FormulaR1C1 = "=R[-1]C/1000" Selection.FormulaR1C1 = "=R[-1]C*" & SH / 2 Range("Q" & z3).Select ActiveCell.Font.Font.Font.Select ActiveCell.Font.Bold = True End Sub .Select ActiveCell.Select ActiveCell.FormulaR1C1 = "=SUM(R[-1]C:R[-1]C[5])" Selection.Select ActiveCell.Select ActiveCell.FormulaR1C1 = "=R[-1]C/1000" Selection.Select ActiveCell.FormulaR1C1 = Application.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->