GetComboSelectedForOutput

GetComboSelectedForOutput

Syntax

SapObject.SapModel.Results.Setup.GetComboSelectedForOutput

VB6 Procedure

Function GetComboSelectedForOutput(ByVal Name As String, ByRef Selected As Boolean) As Long

Parameters

Name

The name of an existing load combination.

Selected

This item is True if the specified load combination is selected for output.

Remarks

This function checks if a load combination is selected for output.

The function returns 0 if the selected flag is successfully retrieved, otherwise it returns nonzero.

VBA Example

Sub GetComboSelected()

'dimension variables

Dim SapObject as cOAPI

Dim SapModel As cSapModel

Dim ret As Long

Dim Selected As Boolean

'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

'open existing model

ret = SapModel.File.OpenFile("C:\SapAPI\Example 7-002.sdb")

'run analysis

ret = SapModel.Analyze.RunAnalysis

'check if combo is selected

ret = SapModel.Results.Setup.GetComboSelectedForOutput("COMB1", Selected)

'close Sap2000

SapObject.ApplicationExit False

Set SapModel = Nothing

Set SapObject = Nothing

End Sub

Release Notes

Initial release in version 11.00.

Changed nomenclature from Load Cases, Analysis Cases and Response Combinations to Load Patterns, Load Cases and Load Combinations, respectively, in version 12.00.

See Also

DeselectAllCasesAndCombosForOutput

GetCaseSelectedForOutput

SetCaseSelectedForOutput

SetComboSelectedForOutput