AddDesignDefaultCombos



Your Ad Here

Syntax

SapObject.SapModel.RespCombo.AddDesignDefaultCombos

VB6 Procedure

Function AddDesignDefaultCombos(ByVal DesignSteel As Boolean, ByVal DesignConcrete As Boolean, ByVal DesignAluminum As Boolean, ByVal DesignColdFormed As Boolean) As Long

Parameters

DesignSteel

If this item is True, default steel design combinations are to be added to the model.

DesignConcrete

If this item is True, default concrete design combinations are to be added to the model.

DesignAluminum

If this item is True, default aluminum design combinations are to be added to the model.

DesignColdFormed

If this item is True, default cold formed design combinations are to be added to the model.

Remarks

This function adds a new default design response combinations to the model.

The function returns zero if the response combinations are successfully added, otherwise it returns a nonzero value.

VBA Example

Sub AddNewDefaultSteelDesignCombos()
   'dimension variables
      Dim SapObject As Sap2000.SapObject
      Dim SapModel As cSapModel
      Dim ret As Long

   '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

   'add combo
      ret = SapModel.RespCombo.AddDesignDefaultCombos(True, False, False, False)

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

Release Notes

Initial release in version 11.00.

See Also

Add

Return to SAP2000 Index


Your Ad Here