Solid Edge Geometry Type Library
GetStrokeData Method
This is the chordal tolerance between a curve and its facet edges, i.e. through upper bound on distance from chord to the curve. This distance is in Meters.
Returns the number of strokes for the Edge object based on the specified tolerance.
Returns the x, y, and z coordinates of the points on the Edge represented by the strokes. The size of the array is three times the StrokeCount.
Returns the parameter values that are used to calculate the points on the Edge. The size of the array is equal to the StrokeCount.
Description
Returns information on the strokes on the referenced Edge.
Syntax
Visual Basic
Public Sub GetStrokeData( _
   ByVal Tolerance As Double, _
   ByRef StrokeCount As Long, _
   ByRef Points() As Double, _
   ByRef Params() As Double _
) 
Parameters
Tolerance
This is the chordal tolerance between a curve and its facet edges, i.e. through upper bound on distance from chord to the curve. This distance is in Meters.
StrokeCount
Returns the number of strokes for the Edge object based on the specified tolerance.
Points
Returns the x, y, and z coordinates of the points on the Edge represented by the strokes. The size of the array is three times the StrokeCount.
Params
Returns the parameter values that are used to calculate the points on the Edge. The size of the array is equal to the StrokeCount.
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 lngStrokes As Long
    Dim dblPoints() As Double
    Dim dblParams() As Double
    ' 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 form the collection of edges of the body object
    Set objEdge = objBody.Edges(EdgeType:=igQueryAll).Item(2)
    ' getting the stroke data for an edge
    Call objEdge.GetStrokeData(TOLERANCE:=0.001, StrokeCount:=lngStrokes, Points:=dblPoints, _
                               Params:=dblParams)
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objBody = Nothing
    Set objEdge = Nothing
End Sub
See Also

Edge Object  | Edge Members