Changename: Syntax
Changename: Syntax
ChangeName
Syntax
SapObject.SapModel.RespCombo.ChangeName
VB6 Procedure
Function ChangeName(ByVal Name As String, ByVal NewName As String) As Long
Parameters
Name
The existing name of a defined load combination.
NewName
The new name for the combination.
Remarks
The function returns zero if the new name is successfully applied, otherwise it returns a
nonzero value.
The new load combination name must be different from all other load combinations and
all load cases. If the name is not unique, an error will be returned.
VBA Example
Sub ChangeComboName()
'dimension variables
Dim SapObject as cOAPI
Dim SapModel As cSapModel
Dim ret As Long
'initialize model
ret = SapModel.InitializeNewModel
'add combo
ret = SapModel.RespCombo.Add("COMB1", 1)
'close Sap2000
SapObject.ApplicationExit False
Set SapModel = Nothing
Set SapObject = Nothing
End Sub
Release Notes
mk:@MSITStore:C:\Program%20Files\Computers%20and%20Structures\SAP2000%202... 19/10/2019
ChangeName {Combinations} Page 2 of 2
See Also
mk:@MSITStore:C:\Program%20Files\Computers%20and%20Structures\SAP2000%202... 19/10/2019