GetRebarBeam

GetRebarBeam

Syntax

SapObject.SapModel.PropFrame.GetRebarBeam

VB6 Procedure

Function GetRebarBeam(ByVal Name As String, ByRef MatPropLong As String, ByRef MatPropConfine As String, ByRef CoverTop As Double, ByRef CoverBot As Double, ByRef TopLeftArea As Double, ByRef TopRightArea As Double, ByRef BotLeftArea As Double, ByRef BotRightArea As Double) As Long

Parameters

Name

The name of an existing frame section property.

MatPropLong

The name of the rebar material property for the longitudinal rebar.

MatPropConfine

The name of the rebar material property for the confinement rebar.

CoverTop

The distance from the top of the beam to the centroid of the top longitudinal reinforcement. [L]

CoverBot

The distance from the bottom of the beam to the centroid of the bottom longitudinal reinforcement. [L]

TopLeftArea

The total area of longitudinal reinforcement at the top left end of the beam. [L
2
]

TopRightArea

The total area of longitudinal reinforcement at the top right end of the beam. [L
2
]

BotLeftArea

The total area of longitudinal reinforcement at the bottom left end of the beam. [L
2
]

BotRightArea

The total area of longitudinal reinforcement at the bottom right end of the beam. [L
2
]

Remarks

This function retrieves beam rebar data for frame sections.

The function returns zero if the data is successfully retrieved; otherwise it returns a nonzero value.

This function applies only to the following section types. Calling this function for any other type of frame section property returns an error.

SECTION_T = 3

SECTION_ANGLE = 4

SECTION_RECTANGULAR = 8

SECTION_CIRCLE = 9

The material assigned to the specified frame section property must be concrete or this function returns an error.

VBA Example

Sub GetBeamRebar()

'dimension variables

Dim SapObject as cOAPI

Dim SapModel As cSapModel

Dim ret As Long

Dim RebarName As String

Dim MatPropLong As String

Dim MatPropConfine As String

Dim CoverTop As Double

Dim CoverBot As Double

Dim TopLeftArea As Double

Dim TopRightArea As Double

Dim BotLeftArea As Double

Dim BotRightArea As Double

'create Sap2000 object

Set SapObject = CreateObject("CSI.SAP2000.API.SapObject")

'start Sap2000 application

SapObject.ApplicationStart

'create SapModel object

Set SapModel = SapObject.SapModel

'initialize model

ret = SapModel.InitializeNewModel

'create model from template

ret = SapModel.File.New2DFrame(PortalFrame, 2, 144, 2, 288)

'set new frame section property

ret = SapModel.PropFrame.SetRectangle("R1", "4000Psi", 20, 12)

'add ASTM A706 rebar material

ret = SapModel.PropMaterial.AddQuick(RebarName, MATERIAL_REBAR, , , , , MATERIAL_REBAR_SUBTYPE_ASTM_A706)

'set beam rebar data

ret = SapModel.PropFrame.SetRebarBeam("R1", RebarName, RebarName, 3.5, 3, 4.1, 4.2, 4.3, 4.4)

'get beam rebar data

ret = SapModel.PropFrame.GetRebarBeam("R1", MatPropLong, MatPropConfine, CoverTop, CoverBot, TopLeftArea, TopRightArea, BotLeftArea, BotRightArea)

'close Sap2000

SapObject.ApplicationExit False

Set SapModel = Nothing

Set SapObject = Nothing

End Sub

Release Notes

Initial release in version 11.02.

See Also

SetRebarBeam