SetBridgeUpdateForAnalysisFlag



Your Ad Here

Syntax

SapObject.SapModel.BridgeObj.SetBridgeUpdateForAnalysisFlag

VB6 Procedure

Function GetBridgeUpdateForAnalysisFlag(Value As Boolean) As Long

Parameters

Value

A boolean (True or False) value. When this item is True the program automatically updates bridge objects before running an analysis if it detects anything has been changed that might affect the bridge analysis.

Remarks

This function returns zero if the flag is successfully set, otherwise it returns a nonzero value.

This flag is by default set to True for each new Sap2000 Object.

VBA Example

Sub SetBridgeAnalysisFlag()
   'dimension variables
      Dim SapObject As Sap2000.SapObject
      Dim SapModel As cSapModel
      Dim ret As Long
      Dim Flag as Boolean

   '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

   'set flag
      Flag = False
      ret = SapModel.BridgeObj.SetBridgeUpdateForAnalysisFlag(Flag)

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

Release Notes

Initial release in version 11.00.

See Also

GetBridgeUpdateForAnalysisFlag

Return to SAP2000 Index


Your Ad Here