boyq
Civil/Environmental
- Feb 11, 2012
- 3
Hi. I'm new to OpenSTAAD. I wanted to output a table for Section Forces at given distance which is not covered by STAAD default increments(up to 12).
I know I could use "Print Member Sections Force List" Command and defining a custom section but the output is not usable in excel since it's not tabulated so I thought of utilizing STAAD's built-in macro.
Here's my code that doesn't work:
Sub Main()
'Description:Intermediate Forces
Dim objOpenSTAAD AS Object
Dim beam As Long
Dim dist As Double
Dim LC As Long
Dim Force(0 TO 5) As Double
Set objOpenSTAAD = GetObject(,"Staad.ProOpenSTAAD")
beam = 120
LC = 701
For dist = 0 TO 3 Step 0.467
'Get Intermediate Forces for Member 120 (Length=3m) at 1.4m for LC 701
objOpenSTAAD.Output.GetIntermediateMemberForcesAtDistance (beam, dist, LC, Force(0))
Next dist
Set objOpenSTAAD = Nothing
End Sub
Your suggestions are appreciated.
I know I could use "Print Member Sections Force List" Command and defining a custom section but the output is not usable in excel since it's not tabulated so I thought of utilizing STAAD's built-in macro.
Here's my code that doesn't work:
Sub Main()
'Description:Intermediate Forces
Dim objOpenSTAAD AS Object
Dim beam As Long
Dim dist As Double
Dim LC As Long
Dim Force(0 TO 5) As Double
Set objOpenSTAAD = GetObject(,"Staad.ProOpenSTAAD")
beam = 120
LC = 701
For dist = 0 TO 3 Step 0.467
'Get Intermediate Forces for Member 120 (Length=3m) at 1.4m for LC 701
objOpenSTAAD.Output.GetIntermediateMemberForcesAtDistance (beam, dist, LC, Force(0))
Next dist
Set objOpenSTAAD = Nothing
End Sub
Your suggestions are appreciated.