Solid Edge Geometry Type Library
GetEdgeUses Method
Returns the number of EdgeUses on the referenced Edge (one or two).
Returns the EdgeUses that are connected to this Edge; the maximum is two.
Description
Returns the EdgeUses of the referenced Edge.
Syntax
Visual Basic
Public Sub GetEdgeUses( _
   ByRef NumEdgeUses As Long, _
   ByRef EdgeUses() As Object _
) 
Parameters
NumEdgeUses
Returns the number of EdgeUses on the referenced Edge (one or two).
EdgeUses
Returns the EdgeUses that are connected to this Edge; the maximum is two.
Remarks
This method returns the EdgeUses of the referenced Edge object (at most two in the two-manifold situation, one for each of the Loops that uses this Edge).
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgepart.PartDocument
    Dim objBody As SolidEdgeGeometry.Body
    Dim objEdge As SolidEdgeGeometry.Edge
    Dim objEdgeUses(1 To 2) As SolidEdgeGeometry.EdgeUse
    Dim lngNumEdgeUses As Long
    ' 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.PartDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    ' creating the base feature
    If CreateModel(objDoc) <> "" Then
        MsgBox "Error creating the model"
        Exit Sub
    End If
    ' getting the body object of the model
    Set objBody = objDoc.Models(1).Body
    'getting an edge from the collection of edges of the body object
    Set objEdge = objBody.Edges(EdgeType:=igQueryAll).Item(2)
    ' getting the EdgeUses object and the number of edge uses for an edge
    Call objEdge.GetEdgeUses(NumEdgeUses:=lngNumEdgeUses, EdgeUses:=objEdgeUses)
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objBody = Nothing
    Set objEdge = Nothing
End Sub
See Also

Edge Object  | Edge Members

Send comments on this topic.