DeselectAllCasesAndCombosForOutput



Your Ad Here

Syntax

SapObject.SapModel.Results.Setup.DeselectAllCasesAndCombosForOutput

VB6 Procedure

Function DeselectAllCasesAndCombosForOutput() As Long

Parameters

None

Remarks

The function deselects all analysis cases and response combinations for output.

The function returns zero if the cases and combos are successfully deselected, otherwise it returns a nonzero value.

VBA Example

Sub DeselectCasesAndCombos()
   'dimension variables
      
Dim SapObject As Sap2000.SapObject
      Dim SapModel As cSapModel
      Dim ret As Long
      Dim NumberResults As Long
      Dim PointElm() As String
      Dim ACase() As String
      Dim StepType() As String
      Dim StepNum() As Double
      Dim U1() As Double
      Dim U2() As Double
      Dim U3() As Double
      Dim R1() As Double
      Dim R2() As Double
      Dim R3() As Double

   
'create Sap2000 object
      Set SapObject = New SAP2000.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, 3, 124, 3, 200)

   'run analysis
      ret = SapModel.File.Save("C:\SapAPI\x.sdb")
      ret = SapModel.Analyze.RunAnalysis

   'deselect all cases and combos
      ret = SapModel.Results.Setup.DeselectAllCasesAndCombosForOutput

   'close Sap2000
      SapObject.ApplicationExit False
      Set SapModel = Nothing
      Set SapObject = Nothing
End Sub

Release Notes

Initial release in version 11.00.

See Also

GetCaseSelectedForOutput

GetComboSelectedForOutput

SetCaseSelectedForOutput

SetComboSelectedForOutput

Return to SAP2000 Index


Your Ad Here