Solid Edge FrameworkSupport Type Library
Item Method
Variant (input) index.
Description
The items in a collection.
Syntax
Visual Basic
Public Function Item( _
   ByVal Index As Variant _
) As Balloon
Parameters
Index
Variant (input) index.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgeDraft.DraftDocument
    Dim objSheet As SolidEdgeDraft.Sheet
    Dim objBalloons As SolidEdgeFrameworkSupport.Balloons
    Dim objBalloon As SolidEdgeFrameworkSupport.Balloon
    Dim objBItem As SolidEdgeFrameworkSupport.Balloon
    ' Report errors
    Const PI = 3.14159265358979
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.DraftDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    ' getting the Active Sheet object
    Set objSheet = objDoc.ActiveSheet
    ' getting the Balloons collection object on the active sheet
    Set objBalloons = objSheet.Balloons
    ' adding a balloon on the active sheet
    Set objBalloon = objBalloons.Add(x1:=0.25, y1:=0.25, z1:=0)
    ' getting another reference to the same balloon in the Balloons collection object
    Set objBItem = objBalloons.Item(1)
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objSheet = Nothing
    Set objBalloons = Nothing
    Set objBalloon = Nothing
    Set objBItem = Nothing
End Sub
See Also

Balloons Collection  | Balloons Members

Send comments on this topic.