SetBridgeUpdateForAnalysisFlag

SetBridgeUpdateForAnalysisFlag
(Note: Newer function available)

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 cOAPI

 Dim SapModel As cSapModel

 Dim ret As Long

 Dim Flag 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

 '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.

This function is DEPRECATED as of version v26.0.0. Please usecBridgeModeler_1 which is documented in the CSI_OAPI_Bridge_Modeler.chm help file.This topic is maintained for reference.

See Also

GetBridgeUpdateForAnalysisFlag