Você está na página 1de 8

Afzal Waseem

2007-Civil -87

TOTAL STIFFENESS MATRIX CALULATOR OF BEAMS DEVELOPED IN VISUAL BASIC


Submitted By

Afzal Waseem 2007- Civil - 87 Section B


Submitted To

Sir. Asad Gillani

Structural Engineering Lab

Afzal Waseem

2007-Civil -87

FORM 1: Main Screen on initializing the program

Programming under this button: This will open Form 3 Private Sub Command1_Click () Form3.Visible = True End Sub Programming under this button: This will open Form 2 Private Sub Command2_Click() Form2.Visible = True End Sub

Structural Engineering Lab

Afzal Waseem Programming under this button:

2007-Civil -87

This will open Form 6 Private Sub Command2_Click() Form6.Visible = True End Sub Programming under this button:

This will open Form 7 Private Sub Command2_Click() Form7.Visible = True End Sub Programming under this button:

This will open Form 5 and Form 1 Form5.Visible = True Form1.Visible = True Form2.Visible = False Form3.Visible = False Form4.Visible = False Programming under this button: This will end the program Private Sub Command6_Click() End End Sub

Structural Engineering Lab

Afzal Waseem

2007-Civil -87

Private Sub Command1_Click() Form1.Visible = True a = Val(Text1.Text) If a > 4 Then MsgBox ("Please enter value between 2 and 4") Else: n = a - 1 x = 4000 / n Form1.Visible = True Form3.Visible = False n=a-1 For i = 1 To n Form1.Line1(i).Visible = True Form1.Line1(i).X1 = (600 + ((i - 1) * x)) Form1.Line1(i).X2 = (600 + (i * x)) Form1.Shape1(i).Left = (600 + ((i - 1) * x)) Form1.Shape1(i + 1).Left = (600 + (i * x)) Next i For i = 1 To a Form1.Shape1(i).Visible = True Next i End If End Sub
Structural Engineering Lab 4

Afzal Waseem

2007-Civil -87

FORM 2

Clicking will Generate

Private Sub Command1_Click() Dim a(44) As Integer, m As Integer, n As Integer If Val(Text1.Text) > 4 Then MsgBox ("Please enter value between 2 and 4") ElseIf Val(Text2.Text) > 4 Then MsgBox ("Please enter value between 2 and 4") Else Form4.Visible = True Form4.Text1.Text = Val(Form2.Text3.Text) Form4.Text2.Text = -1 * Val(Form2.Text3.Text) Form4.Text3.Text = -1 * Val(Form2.Text3.Text) Form4.Text4.Text = Val(Form2.Text3.Text) End If End Sub

Structural Engineering Lab

Afzal Waseem

2007-Civil -87

Private Sub Command1_Click() Dim a(44) As Integer, m As Integer, n As Integer, o As Integer, p As Integer Form1.Visible = True Form2.Visible = False Form4.Visible = False i = Val(Form2.Text1.Text) j = Val(Form2.Text2.Text) m = (i * 10) + i n = (i * 10) + j o = (j * 10) + i p = (j * 10) + j a(m) = Val(Text1.Text) a(n) = Val(Text2.Text) a(o) = Val(Text3.Text) a(p) = Val(Text4.Text) For i = 1 To 4 For j = 1 To 4 m = ((i * 10) + j) Form5.Text1(m).Text = a(m) + Val(Form5.Text1(m).Text) Next j Next i End Sub Structural Engineering Lab 6

Afzal Waseem

2007-Civil -87

FORM 6

Clicking will Generate

Private Sub Command1_Click() Dim a(44) As Integer, m As Integer, n As Integer If Val(Text1.Text) > 4 Then MsgBox ("Please enter value between 2 and 4") ElseIf Val(Text2.Text) > 4 Then MsgBox ("Please enter value between 2 and 4") Else Form4.Visible = True Form4.Text1.Text = Val(Form2.Text3.Text) Form4.Text2.Text = -1 * Val(Form2.Text3.Text) Form4.Text3.Text = -1 * Val(Form2.Text3.Text) Form4.Text4.Text = Val(Form2.Text3.Text) End If End Sub

Structural Engineering Lab

Afzal Waseem

2007-Civil -87

Private Sub Command1_Click() Dim a(44) As Integer, m As Integer, n As Integer, o As Integer, p As Integer Form1.Visible = True Form2.Visible = False Form4.Visible = False i = Val(Form2.Text1.Text) j = Val(Form2.Text2.Text) m = (i * 10) + i n = (i * 10) + j o = (j * 10) + i p = (j * 10) + j a(m) = Val(Text1.Text) a(n) = Val(Text2.Text) a(o) = Val(Text3.Text) a(p) = Val(Text4.Text) For i = 1 To 4 For j = 1 To 4 m = ((i * 10) + j) Form5.Text1(m).Text = a(m) + Val(Form5.Text1(m).Text) Next j Next i End Sub Structural Engineering Lab 8

Interesses relacionados