SetSelectedEdge



Your Ad Here

Syntax

Sap2000.AreaObj.SetSelectedEdge

VB6 Procedure

Function SetSelectedEdge(ByVal Name As String, ByVal EdgeNum As Long, ByVal Selected As Boolean) As Long

Parameters

Name

The name of an existing area object.

EdgeNum

The area object edge that is have its selected status set.

Selected

This item is True if the specified area object edge is selected; otherwise it is False.

Remarks

This function sets the selected status for area object edges.

The function returns zero if the selected status is successfully set; otherwise it returns a nonzero value.

VBA Example

Sub SetAreaObjectEdgeSelected()
   '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

   'create model from template
      ret = SapModel.File.NewWall(2, 48, 2, 48)

   'set area object edge selected
      ret = SapModel.AreaObj.SetSelectedEdge("1", 2, True)

   'update window
      ret = SapModel.View.RefreshWindow

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

Release Notes

Initial release in version 11.00.

See Also

GetSelectedEdge

GetSelected

SetSelected

Return to SAP2000 Index


Your Ad Here