SapObject.SapModel.RespCombo.AddDesignDefaultCombos
Function AddDesignDefaultCombos(ByVal DesignSteel As Boolean, ByVal DesignConcrete As Boolean, ByVal DesignAluminum As Boolean, ByVal DesignColdFormed As Boolean) As Long
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.
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.
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
Initial release in version 11.00.