SapObject.SapModel.TendonObj.GetLoadedGroup
Function GetLoadedGroup(ByVal Name As String, ByRef GroupName As String) As Long
Name
The name of an existing tendon object.
GroupName
This is the name of an existing group. All objects in the specified group can be loaded by the tendon.
This function retrieves the loaded group for tendon objects. A tendon object transfers its load to any object that is in the specified group.
The function returns zero if the assignment is successfully retrieved, otherwise it returns a nonzero value.
Sub GetTendonLoadedGroup()
'dimension variables
Dim SapObject As Sap2000.SapObject
Dim SapModel As cSapModel
Dim ret As Long
Dim GroupName As String
Dim Name As String
'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
'create model from template
ret = SapModel.File.New2DFrame(PortalFrame,
2, 144, 2, 288)
'add tendon object by points
ret = SapModel.TendonObj.AddByPoint("3",
"9", Name)
'get tendon loaded group
ret = SapModel.TendonObj.GetLoadedGroup(Name,
GroupName)
'close Sap2000
SapObject.ApplicationExit False
Set SapModel = Nothing
Set SapObject = Nothing
End Sub
Initial release in version 11.00.